S
SK
hi,
We are trying to run a batch Cobol program which calls a Java code
which is on the USS in mainframe. When we tried running the job using a
few input hundred records everything goes fine, but when we tried
running the same code with around a few thousand records (around 5000)
the JVM ran out of memory problems after processing 1200 records.
The GC message generated at run time suggests that each time the amount
of memory being released is lesser and gradually there's no space to be
freed and the code runs out of memory. We found a memory leak with the
NewStringPlatform JNI call used in Cobol to convert a Cobol string to a
Java string. IBM has already identified this issue and have come up
with a fix.
But even without the using the NewStringPlatform JNI call, the code
runs out of memory in the manner as mentioned earlier. I had tried to
find some kind of information related to this but in vain. If someone
here has come across a similar situation or has overcome this problem
succesfully, please let me know the details.
Thanks,
SK
We are trying to run a batch Cobol program which calls a Java code
which is on the USS in mainframe. When we tried running the job using a
few input hundred records everything goes fine, but when we tried
running the same code with around a few thousand records (around 5000)
the JVM ran out of memory problems after processing 1200 records.
The GC message generated at run time suggests that each time the amount
of memory being released is lesser and gradually there's no space to be
freed and the code runs out of memory. We found a memory leak with the
NewStringPlatform JNI call used in Cobol to convert a Cobol string to a
Java string. IBM has already identified this issue and have come up
with a fix.
But even without the using the NewStringPlatform JNI call, the code
runs out of memory in the manner as mentioned earlier. I had tried to
find some kind of information related to this but in vain. If someone
here has come across a similar situation or has overcome this problem
succesfully, please let me know the details.
Thanks,
SK