File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Performance
Bookmark "java.util.logger OutOfMemoryError" Watch "java.util.logger OutOfMemoryError" New topic

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

Joined: Mar 31, 2009
Posts: 251
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:
subject: java.util.logger OutOfMemoryError
jQuery in Action, 3rd edition