weird weird outofmemory
weird weird outofmemory
- Subject: weird weird outofmemory
- From: Jonathan Rochkind <email@hidden>
- Date: Tue, 30 Mar 2004 12:41:32 -0600
Okay, I know I need a profiler to really figure this out, but I don't have one.
I have a 'test' instance of an app running. It's only used by
developers and internal staff for testing. It gets very little usage,
and has a very large java maximum heap size set.
Yet... it _still_ logged an OutOfMemoryError. I don't know what the
user was doing at the time to trigger this OutOfMemory. But I can't
think of anything that possibly could! And to make matters more
confusing, when my app logs and OutOfMemory, it also logs the total
and free memory reported by java.lang.Runtime:
[2004-03-24 19:50:30 CST] <WorkerThread0> CollabExceptionLogUtility:
Out of Memory Exception! Can not recover! Exiting app!
[2004-03-24 19:50:30 CST] <WorkerThread0> Total memory of Runtime: 167116800
[2004-03-24 19:50:30 CST] <WorkerThread0> Free memory of Runtime: 13942056
Huh? Around 14 megs of free memory, and it's still reporting
OutOfMemory? And there's no good reason for there to be only 14 megs
of free memory anyway, there should be a lot more than that.
I must have a memory leak or something somewhere. Is there any way
to try and figure out what's going on without a profiler? Part of
what makes this a pain is that OutOfMemoryErrors never come with a
stack trace, for some reason, so I really have no idea what line of
code may have triggered it.
--Jonathan
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.