Start JOnAS with increased heap memory (and permgen-space) by default via JONAS_OPTS in startup-scripts
We are developing a rather large and complex Java EE .EAR application.
production systems run on JOnAS 4.10.X -- we are also working on a migration to JOnAS 5.1 or 5.2 currently.
to show the size/complexity of our application:
- the .EAR file of our Java EE application is about 40 Megabytes
- the ear file contains a large ejb-jar package with more than 100 entity beans
- the ear file contains three different web-application bundels as war.file
- we have integrated a lot of different frameworks, so the ejb-jar libs and web-inf/lib are rather large too (this is where most of the 40 megabytes come from)
when we download and install JOnAS in the default configuration we can deploy our .ear file but right after logging into the web-app and making 2 or three clicks, the application fails with an OutOfMemoryException!
for some years now, EVERY TIME we upgrade to a newer JOnAS version we have to manually edit the "jonas" start script in JONAS_ROOT/bin/... and increase heap space and permgen space via the following options:
-XX:MaxPermSize=
-Xmx
As far as I know other Java EE application servers come with increased heap and permgen-space options by default.
Would it be an option for upcoming JOnAS releases to also come with increased available heap and permgen-space by default?
regards, HANS