aspose file tools*
The moose likes Performance and the fly likes java.util.logger OutOfMemoryError Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Performance
Bookmark "java.util.logger OutOfMemoryError" Watch "java.util.logger OutOfMemoryError" New topic
Author

java.util.logger OutOfMemoryError

Wesley Baker
Ranch Hand

Joined: Aug 20, 2008
Posts: 45
Some of my programs that write to a log file will get OutOfMemoryErrors if the log file becomes too big. This seems odd to me, since I assume (ass=u+me) that the java.util.logger does not attempt to keep all previous log entries in memory for the duration fo the JVM, or until the logger is garbage collected. Is this not true? I am using J2SE 1.6.

I can post some code if needed, but I figured this was more of a "why does Java do this" question.
Kees Jan Koster
JavaMonitor Support
Rancher

Joined: Mar 31, 2009
Posts: 251
    
    5
Dear Wesley,

Not sure if you are right, but if you post a stack trace, perhaps we can help out.

Most likely, your app is eating all the memory and java.util.Logging is just an innocent bystander.

Kees Jan


Java-monitor, JVM monitoring made easy <- right here on Java Ranch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: java.util.logger OutOfMemoryError