Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Memory issue with Jonas Server while deploying a war.

 
Sandeep Dwivedi
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are facing an issue on production that when ever a cluster is switched, database connection is lost.

So in order to simulate the same on local environment, we are trying to deploy the war on Jonas [windows environment ]

But When we deploy our applicaiton war on jonas, it gives up Java-heap exception given below:-
=============================================
message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Java heap space
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:293)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)

root cause

java.lang.OutOfMemoryError: Java heap space

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.12 logs.

===================================================================================
We also increased the size of JAVA HEAP by setting JAVA_OPTS in Jonas cofiguraiton file. but it did nt work, nd jonas has problam while startup only.

Wht is maximum size of war/ear that can be deployed on JONAS server?
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sandeep,

There is no practical limit to the size of WAR/EAR files. Most likely you have a memory leak.

What memory sizes are you using? What is the precise stack trace from the logs?

"it did not work" is not a problem description. No cookie.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic