PermGen Space is where classes live.
One of the links on the FAQ should get you on track:
http://opensource.atlassian.com/confluence/spring/pages/
viewpage.action?pageId=2669
You are likely doing something seemingly innocent, but there is
actually a problem.
I got similar errors to yours when I had too many simultaneous
instances of the same webapp (Apache Roller 4). I ended up with 16000
classes loaded.
I now have a goofy config due to hacking that issue and my logging
doesn't work as I want. But my few nagging memory problems are
solved, ok. I haven't had the "luxury" of truly figuring out the
issues. I hope that you do.
Regards,
Dave
On Mar 19, 2008, at 1:32 PM, Scott Mueller wrote:
Thank you for the response Chuck. Like I said, this is a very
simple webapp
(aside from the Spring/Hibernate libraries). Stores nothing ever
in any
sessions and I can't imagine memory leaks with the simple code.
Thank you
for those links, I guess I should run a profiler to see exactly
what's going
on. In the meantime, what's the proper way to increase the memory
allocated
to tomcat? And should I allocate more than my physical ram? Is
there a
general formula for how much ram to allocate to tomcat on a machine
dedicated to only that function?
On Wed, Mar 19, 2008 at 11:03 AM, Caldarale, Charles R <
[EMAIL PROTECTED]> wrote:
From: Scott Mueller [mailto:[EMAIL PROTECTED]
Subject: Running out of memory too easily in Tomcat 6.0.16
I have a very small and simple Spring + Hibernate application
Once you throw Spring and Hibernate into the mix, nothing is simple.
javax.servlet.ServletException: java.lang.OutOfMemoryError:
PermGen space
Somewhere, you're hanging onto references to objects or classes
from the
prior deployments. ThreadLocal usage is a typical way of doing
this, as
are inappropriate references stored in a Session, but there's no
limit
to programmer's inventiveness in creating memory leaks.
Read the FAQ:
http://wiki.apache.org/tomcat/FAQ/Memory
Especially this link from there:
http://opensource.atlassian.com/confluence/spring/pages/
viewpage.action?
pageId=2669<http://opensource.atlassian.com/confluence/spring/
pages/viewpage.action?pageId=2669>
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE
PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-
mail
and its attachments from all computers.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]