aspose file tools*
The moose likes Java in General and the fly likes check system memory available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "check system memory available" Watch "check system memory available" New topic
Author

check system memory available

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
I know how to find out how much memory the Java Runtime has, but is there a way to check how much the OS has? Windows is reporting this error associated with Tomcat:

The CreateThread function failed for the following reason: Not enough storage is available to process this command.

We've got about 3GB of RAM in the Wintel machine and 1.5GB is allocated to Java. I'd like to just have a simple lightweight watchdog program running that's checking the OS's memory usage very frequently, and logs it to a file anytime it gets super high so that I can know for sure that we have a problem with this! If there's no way to do it, I guess I can try to figure out how to hack out a little C# program for this. Or should I not be asking about system memory and really only be concerned with checking the JVM used by the Tomcat process?

Thanks for any tips!
 
Don't get me started about those stupid light bulbs.
 
subject: check system memory available