[Glass] Understanding temp memory used seaside gems and 'ps' output

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Fri Jun 19 13:47:32 PDT 2015


On Fri, Jun 19, 2015 at 5:32 PM, Richard Sargent <
richard.sargent at gemtalksystems.com> wrote:

> This Stack Exchange article may give you some answers. The basic answer
> seems to be "It isn't that easy"!
>
>
> http://unix.stackexchange.com/questions/34795/correctly-determining-memory-usage-in-linux
>
>
>
Hi Richard,

Yes, I did that. In fact, before sending the email, I tried with vsz rather
than rss

ps -e -o pid,vsz,comm= | sort -n -k 2


and for the same process it showed me 3.5GB!!!  much more than the 700MB.
So that confused me too haha.




On Fri, Jun 19, 2015 at 1:22 PM, Mariano Martinez Peck via Glass <
> glass at lists.gemtalksystems.com> wrote:
>
>> Hi guys,
>>
>> I run this command on my server $  ps -e -o pid,rss,comm= | sort -n -k 2
>>
>> And processes used the most memory (are at the very end of the above
>> script) are topaz processes:
>>
>> 26570 569256 topaz
>> 26537 617288 topaz
>>  2560 622048 topaz
>>  2132 635224 gem
>> 26603 669584 topaz
>>  2564 726456 topaz
>>  1865 731244 pgsvrmain
>>  2563 786204 topaz
>>  2895 939380 gem
>>  2869 955488 pgsvrmain
>>
>> Of course, those PIDs (2563, 2564 etc) are exactly those of my seaside
>> gems.
>> 786204 KB (pid 2563) is around 786.204MB.
>>
>> $ ps -fea | grep 2563
>>
>> myuser  2563     1  0 Jun15 ?        00:03:42
>> /opt/gemstone/product/bin/topaz -l -e
>> /opt/gemstone/product/seaside/etc/seaside30.conf -I
>> /xxx/sites/yyy/gemstone/.topazini
>>
>> Note that in /opt/gemstone/product/seaside/etc/seaside30.conf I define:
>>
>> GEM_TEMPOBJ_CACHE_SIZE = 700000;
>>
>> *So.. first question is why process 2563 is showing more than 700MB
>> (786MB in this case).*
>>
>> Anyway...if I go and cycle over each of my seaside gems and I print the
>> results of *"System _tempObjSpacePercentUsed" for each gem, I usually
>> get between 5% and 20%*, which would mean between 35MB to 140MB. This is
>> FAR from 786MB reported by PS.  So.... I am misunderstanding something?
>>
>> yes...my OS is having little memory free and I am trying to see if I am
>> not holding unnecessary memory...
>>
>>  Thanks in advance for any clarification.
>>
>>
>> --
>> Mariano
>> http://marianopeck.wordpress.com
>>
>> _______________________________________________
>> Glass mailing list
>> Glass at lists.gemtalksystems.com
>> http://lists.gemtalksystems.com/mailman/listinfo/glass
>>
>>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20150619/ff0061f3/attachment.html>


More information about the Glass mailing list