wood burning stoves 2.0*
The moose likes Other Java Products and Servers and the fly likes Memory issue with Jonas Server while deploying a war. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Memory issue with Jonas Server while deploying a war." Watch "Memory issue with Jonas Server while deploying a war." New topic
Author

Memory issue with Jonas Server while deploying a war.

Sandeep Dwivedi
Greenhorn

Joined: Jul 09, 2008
Posts: 15
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?


Thanks & Regards,
Sandeep Dwivedi
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
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.


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Memory issue with Jonas Server while deploying a war.