TN- Out of Memory error

Hi,

For the past few days we are getting out of memory errors in production.
The error visible in error log is wm.tn:recognise : Out of Memory received.
Error Dump

 2007-11-13 13:05:44 CET                          WMERROR                         c104a08091e011dcb6edeb21ee768543NULL                            c104a08091e011dcb6edeb21ee768543
1194955541128                                                                                                                                                                 com.wm
.app.tn.err.EXMLException: <EXMLException>
   <ErrorCode></ErrorCode>
   <Info>wm.tn.doc:recognize</Info>
   <OriginalException>
      <JavaClass>java.lang.OutOfMemoryError</JavaClass>
      <Message></Message>
      <StackTrace>java.lang.OutOfMemoryError
        at com.wm.lang.xml.token.BlockInputBuffer.getOrAppendString(BlockInputBuffer.java(Compiled Code))
        at com.wm.lang.xml.token.BlockInputBuffer.getOrAppendString(BlockInputBuffer.java(Inlined Compiled Code))
        at com.wm.lang.xml.token.BlockInputBuffer.appendString(BlockInputBuffer.java(Compiled Code))
        at com.wm.lang.xml.SourceNode.appendOriginalMarkup(SourceNode.java(Compiled Code))
        at com.wm.lang.xql.ElementModel.getNodeSource(ElementModel.java(Inlined Compiled Code))
        at com.wm.lang.xql.ParsedMethod_source.getValue(ParsedMethod_source.java(Compiled Code))
        at com.wm.lang.xql.ParsedMethod.addToResults(ParsedMethod.java(Compiled Code))
        at com.wm.lang.xql.ParsedAbsoluteChildPath.addToResults(ParsedAbsoluteChildPath.java(Compiled Code))
        at com.wm.lang.xcom.wm.app.tn.err.EXMLException: <EXMLException>
   <ErrorCode></ErrorCode>
   <Info>wm.tn.doc:recognize</Info>
   <OriginalException>
      <JavaClass>java.lang.OutOfMemoryError</JavaClass>
      <Message></Message>
      <StackTrace>java.lang.OutOfMemoryError
        at com.wm.lang.xml.token.BlockInputBuffer.getOrAppendString(BlockInputBuffer.java(Compiled Code))
        at com.wm.lang.xml.token.BlockInputBuffer.getOrAppendString(BlockInputBuffer.java(Inlined Compiled Code))
        at com.wm.lang.xml.token.BlockInputBuffer.appendString(BlockInputBuffer.java(Compiled Code))
        at com.wm.lang.xml.SourceNode.appendOriginalMarkup(SourceNode.java(Compiled Code))
        at com.wm.lang.xql.ElementModel.getNodeSource(ElementModel.java(Inlined Compiled Code))
        at com.wm.lang.xql.ParsedMethod_source.getValue(ParsedMethod_source.java(Compiled Code))
        at com.wm.lang.xql.ParsedMethod.addToResults(ParsedMethod.java(Compiled Code))
        at com.wm.lang.xql.ParsedAbsoluteChildPath.addToResults(ParsedAbsoluteChildPath.java(Compiled Code))
        at com.wm.lang.xql.ParsedQuery.addToResults(ParsedQuery.java(Compiled Code))
        at com.wm.lang.xql.ParsedExpression.getResults(ParsedExpression.java(Inlined Compiled Code))
        at com.wm.lang.xql.XqlQuery.getResults(XqlQuery.java(Compiled Code))
        at com.wm.lang.xql.XqlQuery.getString(XqlQuery.java(Compiled Code))

Has any one faced this problem earlier? Any help will be very much appreciated.

Regards
Yogesh

What version of IS/TN?
What are the memory settings?
Have you done a verbose gc analysis?
What were all the things that IS/TN was doing at the failure? Lots of docs?
Was the doc that failed “large?”