[cosmo-dev] Re: Performance?
Alan Lord
alanslists at gmail.com
Thu Jan 3 07:15:22 PST 2008
Randy Letness wrote:
<snip />
>
> Are you running a single tomcat process or multiple? What else is
> running on the system? Are you running the default Derby database or
> are you using MySQL? This may be a typo, but your JAVA_OPTS line is
> missing a double quote and should be:
>
> JAVA_OPTS="${JAVA_OPTS} "-Xms900m -Xmx900m -XX:PermSize=128m
> -XX:MaxPermSize=512m
A single tomcat instance.
pstree =
init─┬─6*[agetty]
├─asterisk───17*[{asterisk}]
├─exim
├─gpm
├─httpd───7*[httpd]
├─inadyn
├─jsvc───jsvc───55*[{jsvc}]
├─klogd
├─mysqld_safe───mysqld───10*[{mysqld}]
├─nmbd───nmbd
├─ntpd
├─postgres───6*[postgres]
├─smbd───smbd
├─sshd───sshd───bash───pstree
├─syslogd
└─udevd
I am using Cosmo with Postgresql.
The closing quote is at the end of the whole line:
JAVA_OPTS="${JAVA_OPTS} -Xms900m -Xmx900m -XX:PermSize=128m
-XX:MaxPermSize=512m"
Placing it where you suggest causes the init script to break.
> I usually run cosmo with a max heap size of 512M and never get
> out-of-memory errors even when hitting the server with 10+ users.
I guessed I shouldn't be running into much trouble yet.
>
>
>>
>> I also have a CRM application running in tomcat from what was centric
>> but is now called ConcourseSuite by Concursive Corporation. That seems
>> to be quite happy all of the time.
>>
>
> Do you know how much memory this application is using?
Nope - Using TOP I can see what JSVC (The Java/Tomcat script that starts
tomcat as a non-root user) uses and it seems to operate around:
VIRT RES SHR
310m 83m 16m
Is there a way of digging inside
>
>> Real useage is pretty low - only two/three users max, a few calendar
>> collections and Cosmo is being accessed by Lightning, Cosmo's Web UI
>> and sometimes the Chandler Desktop.
>>
>
> How big are the collections?
I guess by your standards they are tiny. Most have only a few entries,
one has probably a couple of hundred which we have imported from our old
webcalendar PHP app, and has last year's stuff in it.
>> I realise the code is still not finished, as it were, but is there
>> anything I can do to help track down the problem?
>>
>
> Can you run just the cosmo war and see what happens? It seems like the
> system is thrashing, which points to not enough memory.
The system has never needed/tried to go to use swap as far as I can tell
and the disk doesn't thrash (It's next to me on my desk).
One thing that might be significant is on the cosmo Server Status screen
it only reports 64M available:
Memory KB
Max 65,088
Total 65,088
Used 35,037
Free 30,051
Where is this parameter defined?
Cheers
Alan
--
The way out is open!
http://www.theopensourcerer.com
More information about the cosmo-dev
mailing list