Hi Brad,

Client vars in the database - never in the registry ;)

Thanks for the advise. I have been tuning the JVM heap size for a long time
and at a fairly happy place these days. There were some dark times along the
way though, let me tell you.

Maintain connections is checked and the purge setting is 10 days or so. I've
followed the advise in  this post here:
http://forums.adobe.com/thread/200548

Which recommends adding -Xss256k to decrease the default heap size. This
seems to be helping keep memory usage down (I am checking memory usage via:

<cfset runtime = CreateObject("java","java.lang.Runtime").getRuntime()>
<cfset freeMemory = runtime.freeMemory() / 1024 / 1024>
<cfset totalMemory = runtime.totalMemory() / 1024 / 1024>

)

So, time will tell if this was an effective move.

Brook

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: August-27-09 8:48 AM
To: cf-talk
Subject: RE: 500 Error / java.lang.Error: Error starting thread: Not enough
storage is available to process this command.


I doubt his client vars are in the registry since the stack trace was
trying to create a thread to get a JDBC connection as part of
coldfusion.runtime.AppHelper.setupClientScope.

If your JVM can't create any more threads, have you looked at the
minimum and maximum amounts of memory your JVM heap has assigned to it?
(-Xms and -Xmx settings in your jvm.config file) How much is being used?
 Download a trial of SeeFusion and it will allow you to see exactly how
much memory your JVM is using and will also allow you to run garbage
collection.

If I had to guess, I would say your JVM needs tuning or your application
is being wasteful with memory.  There's also a possibility the problem
lies with your datasource settings for your client storage since the
error was while trying to get a connection to the database.  Do you have
the "Maintain connections across client requests" option selected in
that datasource?

~Brad

-------- Original Message --------
 Subject: Re: 500 Error / java.lang.Error: Error starting thread: Not
 enough storage is available to process this command.
 From: Dave Watts <[email protected]>
 Date: Thu, August 27, 2009 9:50 am
 To: cf-talk <[email protected]>
 
 
 > No body has a single word of advice about what this thread dump
shows? Can
 > some one point me in the right direction? I Googled it to no avail...
 
 It's a fairly generic Windows error. Are you storing client variables
 in the registry?





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325784
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to