This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes event log error for tomcat:  CreateThread function failed (not enough storage) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "event log error for tomcat:  CreateThread function failed (not enough storage)" Watch "event log error for tomcat:  CreateThread function failed (not enough storage)" New topic
Author

event log error for tomcat: CreateThread function failed (not enough storage)

Stephen Huey
Ranch Hand

Joined: Jul 15, 2003
Posts: 618
In the Event log on Windows 2000 Server, we're occasionally seeing a weird error showing up for Apache Tomcat 4.27:

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

We really don't know what's causing this. Is Tomcat (or Java) low on memory? You'd think we'd know, but we don't, because by the time this error pops up, the problem is no doubt over with. We do have to restart Tomcat for what we think are unrelated reasons...however, if Tomcat/Java is running out of memory, then that definitely throws a kink in our theory..

Thanks for any help!
Scott Dunbar
Ranch Hand

Joined: Sep 23, 2004
Posts: 245
CreateThread is a Windows specific method but you're correct - you're out of memory. I'm not a Windows Guru by any stretch of the imagination but a quick Google search of the second part of the string shows that it is system memory, not just the memory of the process that is being exhasted.


<a href="http://forums.hotjoe.com/forums/list.page" target="_blank" rel="nofollow">Java forums using Java software</a> - Come and help get them started.
 
Don't get me started about those stupid light bulbs.
 
subject: event log error for tomcat: CreateThread function failed (not enough storage)
 
Similar Threads
I can not for the life of me figure out what is causing this
Is there any way to execute a Linux command from Java without fork-ing?
check system memory available
Accessing Server Runtime from Applet
join