0

I have a WAS where a particular WAR file is deployed. This WAR file runs okay most of the time, however at times it would run to Java OOM issue.

I'd like to know if there is any control to increase the Java HEAP size for that particular WAR?

When I run a ps -eo command I could see the associated process info:

/IBM/JRE/bin/java -Xmx768M -Xms768M -Xgcpolicy:gencon .....

I am sure the Heap size is set to 768 MB for this WAR, but I received it from the client, and I should not change its content... Or should I adjust one of its XML configuration files inside?

Michael Mao
  • 215
  • 1
  • 5
  • 12

1 Answers1

4

Heap size is a configuration parameter of the whole JVM. It is not applicable to deployment unit such as WAR.

ᄂ ᄀ
  • 173
  • 2
  • 12
  • makes sense, I will look for other approaches on WAS configuration itself, thanks for your clarification! – Michael Mao Jan 30 '14 at 04:29
  • 1
    There are no other approaches to increase the heap for an individual WAR. But you can easily set the maximum heap for the whole Application Server JVM from the admin console. – dbreaux Jan 30 '14 at 14:56