Java heap space Problem

1
0
-1

Hi friends,
I have a problem with a process and a ui-grid that shows this kind of essues "Java heap space". The problem arrives when in my process I try to import 3000 records of one shot. The process ends with the error in logs:
"SEVERE: org.bonitasoft.web.rest.server.api.resource.CommonResource USERNAME=walter.bates | java.lang.OutOfMemoryError: Java heap space".
I've workaround it importing from 4 little files csv. But when I try to show the records in an ui-grid screen, the grid is empty and same error is showing in logs.
Literature of java recommends change memory parameters : example JAVA_OPTS=-Xms512M -Xmx1024M and restarting Tomcat.
Have you other ideas or experimenting same problem?
My version is Bonita 7.7.4 with a bundle Tomcat.

Thanks in advance
Walter

2 answers

1
0
-1
This one is the BEST answer!

Hello,

You can edit these parameters in the "tomcat-templates/setenv.(bat|sh)" file of the platform configuration.

Check this documentation page to learn how to pull/edit/push the platform configuration from an installed platform.

HIH,

1
0
-1

Thanks Pierrick,
I've found in 'tomcat8w.exe', tag Java the place to setup de parameters to have more memory, ex.:
-Xms1024m
-Xmx2048m
I only must add that Bonita Engine works in service mode and it worked for me!

Notifications