Have you tried making the perm size bigger again?  With lots of apps,
especially if any of them are using frameworks, you'll be using the perm gen
pretty heavily.  If your app is freezing with plenty of headroom left in the
heap, perm gen is certainly a suspect.

Jaime

> -----Original Message-----
> From: Michael Patti [mailto:[EMAIL PROTECTED]
> Sent: Friday, 30 May 2008 6:16 AM
> To: CF-Talk
> Subject: Re: When is is time to upgrade to Enterprise Edition?
>
>
> Hi Mark,
>
> To clarify about the JRUN memory usage: I'm looking in the Task
> Manager under the Processes tab.  When I sort on the 'Mem Usage'
> column, jrun.exe is almost always at the top of the list, with at
> least 350 MB of memory being used at any time.  I'm also running
> FusionReactor to monitor memory usage, but that tool doesn't
> include the permanent heap in it's stats.  I read some postings
> that suggested looking in the task manager, since that *does*
> include JVM memory from the permanent heap; and that's where I
> discovered the memory leak.
>
> On most days, task manager will show the jrun.exe memory starting
> off at around 200 MB right after a re-start of CF, but the levels
> rise steadily throughout the day, until it reaches 500 MB, and
> then I script I have in place restarts CF (when things reach the
> 500 MB mark, which is when pages start to freeze up).  Right now,
> CF is restarting on average every 6 hours, which is absolutely
> horrendous.
>
> I know some of this is related to the persistent CFCs, but I'm
> done my best to go back into the applications I've built and make
> sure that variables used/returned by the CFCs are within the
> 'request' scope, rather than the 'variables' scope.  When I run
> SQL profiler against my DB server, I'm not seeing any patterns of
> the same query re-running endlessly, so I don't think that's an
> issue. But, this is the point at which my knowledge of Java's
> memory management breaks down.  What I probably need to do is set
> up a jave profiler like JProbe to see which threads are eating up
> memory, but I haven't had a chance to do this yet.
>
> If anyone out there is a JVM expert looking for a few hours work,
> let me know :-)
>
> Thanks,
> Michael
>
> >Michael,
> >
> >These args are pretty close to what I use on several CF7
> standard servers. I
> >don't see anything that  jumps out at me. I wonder where you got the idea
> >that Jrun is only using 350 megs of memory however. The args below should
> >put it close to 1200 megs (1.2 gigs). What are you using to make that
> >determination? If you are using the task manager make sure you
> can see the
> >VM size column.
> >
> >-Mark
> >
> >
> >Mark A. Kruger, CFG, MCSE
> >(402) 408-3733 ext 105
> >www.cfwebtools.com
> >www.coldfusionmuse.com
> >www.necfug.com
> >
> >Thanks Wil,
> >
> >I have actually been doing a fair amount of tuning the JVM.
> I'll definitely
> >read your article, but in the meanwhile, here's my jvm.config
> file. Let me
> >know if it seems totally wrong:
> >
> >#
> ># VM configuration
> >#
> ># Where to find JVM, if {java.home}/jre exists then that JVM is used # if
> >not then it must be the path to the JRE itself
> >java.home=C:/j2sdk1.4.2_16/jre # # If no java.home is specified a VM is
> >located by looking in these places in this # order:
> >#
> >#  1) bin directory for java.dll (windows) or
> lib/<ARCH>/libjava.so (unix) #
> >2) ../jre #  3) registry (windows only) #  4) JAVA_HOME env var
> plus jre (ie
> >$JAVA_HOME/jre) #
> >
> ># Arguments to VM
> >java.args=-server  -DJINTEGRA_NATIVE_MODE -DJINTEGRA_PREFETCH_ENUMS
> >-Xms1024m -Xmx1024m -Dsun.io.useCanonCaches=false -XX:MaxPermSize=128m
> >-XX:PermSize=64m -XX:NewSize=48m
> -Dcoldfusion.rootDir={application.home}/../
> >-Dcoldfusion.libPath={application.home}/../lib -XX:+UseConcMarkSweepGC
> >-Dcoldfusion.classPath={application.home}/../lib/updates,{applica
tion.home}/
> >../lib,{application.home}/../gateway/lib/,{application.home}/../w
> wwroot/WEB-
> >INF/cfform/jars,c:\\CfusionMX7\\classpath
> >
> >#
> ># commas will be converted to platform specific separator and the result
> >will be passed # as -Djava.ext.dirs= to the VM
> >java.ext.dirs={jre.home}/lib/ext
> >
> >#
> ># where to find shared libraries
> >java.library.path={application.home}/../lib,{application.home}/..
> /jintegra/b
> >in,{application.home}/../jintegra/bin/international
> >system.path.first=false
> >
> >#
> ># set the current working directory - useful for Windows to control # the
> >default search path used when loading DLLs since it comes # before system
> >directory, windows directory and PATH
> >java.user.dir={application.home}/../../lib
> >
> ># JVM classpath
> >java.class.path={application.home}/servers/lib,{application.home}
/../lib/mac
> >romedia_drivers.jar,{application.home}/lib/cfmx_mbean.jar,{applic
ation.home}
> >/lib
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:306301
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