Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Former Member Absent Member.
Absent Member.
274 views

[archive] Cobol calling Java Memory Limit serious problem

[Migrated content. Thread originally posted on 14 May 2008]

Hello to everyone,
I have a serious problem with interoperability with acucobolGT (7.0.1 and 7.2.0 for Windows) and Java.

I have a java class (called from acucobolGt) that merge several (500-600) PDF documents in one (big) PDF (about 21Mb-28Mb).

The designated java class perform this steps:

1 - extracts (one to one) the name of the PDF documents to merge contained in an array of string

2 - read the source document

3 - add the source document to the destination PDF

4 - update (write) the destination PDF on the disk

5 - repeat the steps (1-4) until the source PDF documents ends


while the class perform this steps the memory usage grow until 92Mb, at this point the class exit abnormally without generate exception or other error.


In the beginning I thought that the problem depended for the class that I used but changing the method I noticed the same problem at the same size of memory used (about 92Mb).

Someone knows if there is a limit of memory that the runtime can use?
there is a runtime variable that can change this behavior?

Another solution?

thanks in advance for your help
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.