Many thanks for the replies.  I see that the 'Maximum JVM Heap Size' is set to
'512' with no minimum specified.  I don't recall ever changing this so presume
that this is the default MM setting.  What would you recommend altering this
value to?

A quick check on the machine now reveals that the memory state is as follows:

Mem:  1285500K av,  950896K used,  334604K free,      56K shrd,  134004K buff
Swap: 1020088K av,       0K used, 1020088K free                  529076K cached

There are then multiple instances of:

PID USER     PRI  NI  SIZE  RSS SHARE STAT %CPU %MEM   TIME COMMAND
1069 nobody    25   5  241M 241M 21708 S N   0.0 19.2   0:00 cfusion

Sorry for appearing a bit stupid here but is the '241M' size above governed by
the JVM Heap Size?  If more RAM was available, this would just grow to a max of
512?

What governs the number of instances of 'cfusion'?  I can see that the bulk
have no 'TIME' value and '0.0' %CPU.  Should these not be timing-out in some
way sooner and then clearing up the available memory?

Thanks,

Matt.

> Matthew Smith wrote:
>
> > Firstly, does anyone have any configuration tips for getting CFMX to
> > better manage the available
> > server memory?  It doesn't seem to ever release the memory and a
> > complete system reboot seems to be
> > the only way to clear it.  We currently have 1.25Gb installed and the
> > simplest solution would be to
> > just add more physical RAM but surely there is a way to get CFMX to
> > better handle the available
> > RAM?!
>
> I would check the value of your Max Heap Size in CF Administrator, the CFMX's
memory usage should not exceeds that value, you may have it set too high.
>
> Even though objects may be "freed" by the garbage collector, it doesn't
necessarily mean that a proportional amount of memory will be freed in the OS.
The JVM allocates memory for the heap which may or may not contain any actual
objects. When there is contention for space in the heap - the heap grows until
the max heap size is reached.
>
> I have posted some info about obtaining the JVM memory usage info from within
CFMX on my blog, see: http://www.petefreitag.com/item/115.cfm
> The variable maxMemory is the max heap size, totalMemory is how much heap is
actually allocated in OS memory.
>
>
> ______________________________________
> Pete Freitag
> http://www.cfdev.com/
> Author of the CFMX Developers Cookbook
> http://www.petefreitag.com/bookshelf/
>
>
>
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to