File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes OutOfMemoryException on multiple deploys of Spring application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Spring
Reply Bookmark "OutOfMemoryException on multiple deploys of Spring application" Watch "OutOfMemoryException on multiple deploys of Spring application" New topic
Author

OutOfMemoryException on multiple deploys of Spring application

Sam Gehouse
Ranch Hand

Joined: Jul 21, 2003
Posts: 281
This seems to be common error:

I see OutOfMemoryError when I deploy a spring based application in an app server. AspectJ type classes are not getting garbage collected. By looking at other postings, it seems ore like the way application is coded/configured. Some of the postings talk about the problem with having static member variables. Shutdownhook is registered in the code.

Following seems like an interesting article:

http://blogs.sun.com/fkieviet/entry/...e_dreaded_java

That being said, did not notice similar problem with non spring app in the same app server with multiple deploys.

Any suggestion, or advice will be appreciated.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 16624

The link doesn't work. ;)

Most of these errors are because some App Servers hot deploy doesn't clean things up as nicely with the way the deal with ClassLoaders. So, it really isn't a Spring issue as much a ClassLoader/App Server issue.

What I tend to do is restart the App Server to deploy my apps rather than hot deploy them.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: OutOfMemoryException on multiple deploys of Spring application
 
Threads others viewed
Special chars not being sent correctly in email
Design and Framework advice requested
Spring Configuration file Weblogic
Can you store persistence.xml in an ear file?
server starting error
IntelliJ Java IDE