You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by Anton <ja...@yahoo.com> on 2005/10/23 20:38:28 UTC

jetspeed2 performance

Hi,

I am trying to use jetspeed2 M3. I noticed very slow
performance: with 25 concurrent users it is rendering
pages ~ 10 sec/page. I am using JMeter and hitting
home page of the sample site
(/jetspeed/portal/default-page.psml). Jetspeed runs
with default configuration (HSQL), additional
settings: set JAVA_OPTS=-Xmx512m -Xms128m in
startup.bat. (This is windows machine, P4 3.0, 1gb
RAM). 
Also I noticed that it is using 100%CPU all the time.

Any ideas how to speed up jetspeed?

Thank you.
Anton


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jetspeed2 performance

Posted by Anton <ja...@yahoo.com>.
Thank you Randy.

I ran test (JetSpeed2 M3) with 25 concurrent users and
it came out under 2 sec/page, and 50 users is about 4
sec/page which is acceptable performance (also
production servers will be more powerful machines, so
I expect even better results).

--- Randy Watler <wa...@wispertel.net> wrote:

> Aaron/Anton,
> 
> We spent quite a bit of time performance tuning J2
> recently... 
> specifically removing DB hits and optimizing for the
> 'guest' user. J2 spends a lot of time setting up
> user sessions for a 
> variety of reasons. So it is important to use a
> stateful
> test harness to make sure that each hit is not
> starting a new session. 
> To be specific, one needs to use a HTTP cookies
> aware test harness. As with most test suites, you
> need to determine how 
> often each "user" session will end up
> grabbing a page. This can make a huge difference in
> how much load a 
> single session is going to put on the system.
> 
> We are always interested in performance results. I
> am not sure if most 
> of the improvements are in M4 or M3, so it
> might be interesting to try out M4 if you can do
> that easily.
> 
> Randy
> 
> Aaron Evans wrote:
> 
> >Anton <javantik <at> yahoo.com> writes:
> >
> >  
> >
> >>Hi,
> >>
> >>I am trying to use jetspeed2 M3. I noticed very
> slow
> >>performance: with 25 concurrent users it is
> rendering
> >>pages ~ 10 sec/page. I am using JMeter and hitting
> >>home page of the sample site
> >>(/jetspeed/portal/default-page.psml). Jetspeed
> runs
> >>with default configuration (HSQL), additional
> >>settings: set JAVA_OPTS=-Xmx512m -Xms128m in
> >>startup.bat. (This is windows machine, P4 3.0, 1gb
> >>RAM). 
> >>Also I noticed that it is using 100%CPU all the
> time.
> >>
> >>Any ideas how to speed up jetspeed?
> >>
> >>    
> >>
> >
> >Anton,
> >one thing you should probably do is put your min
> heap size to the same as your 
> >max (-Xms512m) because you could be running into a
> lot of garbage collection 
> >issues.
> >
> >Also, what version of Java are you running, 1.4 or
> 1.5?
> >
> >As for the CPU, it should not be doing much when
> jetspeed is idle and not 
> >being hit.  So if it is, then you definitely have a
> problem.  Memory might 
> >be the main culprit though. Before setting your
> heap size to a fixed one, 
> >you should note if the java process moves up to the
> 512 max quickly and 
> >stays around there. If so, that could mean that you
> should crank it higher,
> >maybe around 768. 
> >
> >Anyway, I certainly hope that this is not typical! 
> I don't know as I 
> >haven't gotten that far yet.  Has anyone else had
> similar results?
> >
> >
> >
>
>---------------------------------------------------------------------
> >To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@portals.apache.org
> >For additional commands, e-mail:
> jetspeed-user-help@portals.apache.org
> >
> >
> >
> >  
> >
> 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> jetspeed-user-unsubscribe@portals.apache.org
> For additional commands, e-mail:
> jetspeed-user-help@portals.apache.org
> 
> 



	
		
__________________________________ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jetspeed2 performance

Posted by Randy Watler <wa...@wispertel.net>.
Aaron/Anton,

We spent quite a bit of time performance tuning J2 recently... 
specifically removing DB hits and optimizing for the
'guest' user. J2 spends a lot of time setting up user sessions for a 
variety of reasons. So it is important to use a stateful
test harness to make sure that each hit is not starting a new session. 
To be specific, one needs to use a HTTP cookies
aware test harness. As with most test suites, you need to determine how 
often each "user" session will end up
grabbing a page. This can make a huge difference in how much load a 
single session is going to put on the system.

We are always interested in performance results. I am not sure if most 
of the improvements are in M4 or M3, so it
might be interesting to try out M4 if you can do that easily.

Randy

Aaron Evans wrote:

>Anton <javantik <at> yahoo.com> writes:
>
>  
>
>>Hi,
>>
>>I am trying to use jetspeed2 M3. I noticed very slow
>>performance: with 25 concurrent users it is rendering
>>pages ~ 10 sec/page. I am using JMeter and hitting
>>home page of the sample site
>>(/jetspeed/portal/default-page.psml). Jetspeed runs
>>with default configuration (HSQL), additional
>>settings: set JAVA_OPTS=-Xmx512m -Xms128m in
>>startup.bat. (This is windows machine, P4 3.0, 1gb
>>RAM). 
>>Also I noticed that it is using 100%CPU all the time.
>>
>>Any ideas how to speed up jetspeed?
>>
>>    
>>
>
>Anton,
>one thing you should probably do is put your min heap size to the same as your 
>max (-Xms512m) because you could be running into a lot of garbage collection 
>issues.
>
>Also, what version of Java are you running, 1.4 or 1.5?
>
>As for the CPU, it should not be doing much when jetspeed is idle and not 
>being hit.  So if it is, then you definitely have a problem.  Memory might 
>be the main culprit though. Before setting your heap size to a fixed one, 
>you should note if the java process moves up to the 512 max quickly and 
>stays around there. If so, that could mean that you should crank it higher,
>maybe around 768. 
>
>Anyway, I certainly hope that this is not typical!  I don't know as I 
>haven't gotten that far yet.  Has anyone else had similar results?
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
>For additional commands, e-mail: jetspeed-user-help@portals.apache.org
>
>
>
>  
>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jetspeed2 performance

Posted by Anton <ja...@yahoo.com>.
--- Aaron Evans <aaroaaronmevansoo.ca> wrote:

> Anton <javajavantik> yahoo.com> writes:
> 
> > 
> > Hi,
> > 
> > I am trying to use jetsjetspeed. I noticed very
> slow
> > performance: with 25 concurrent users it is
> rendering
> > pages ~ 10 sec/page. I am using JMetJMeter hitting
> > home page of the sample site
> > (/jetspeed/default-page.psml) Jetspeed runs
> > with default configuration (HSQL) additional
> > settings: set JAVA_OPTS=-Xmx512m -Xms128m in
> > startup.bat. (This is windows machine, P4 3.0, 1gb
gb> RAM). 
> > Also I noticed that it is using 100%CPU all the
> time.
> > 
> > Any ideas how to speed up jetsjetspeed > 
> 
> Anton,
> one thing you should probably do is put your min
> heap size to the same as your 
> max (-Xms5Xms) because you could be running into a
> lot of garbage collection 
> issues.
>

I did. Doesn't help.

> Also, what version of Java are you running, 1.4 or
> 1.5?

Jdk 1.4. 
> 
> As for the CPU, it should not be doing much when
> jetsjetspeedidle and not 
> being hit.  So if it is, then you definitely have a
> problem.  
When JetsJetspeedidle, CPU is at 0%. Only when it is
being hit. Also, comparing to Jahia or tomcat - the
same-looking page for 25 concurrent users on the same
machine/configuration takes about 30% CPU. The same
goes to Jetspeed 1 all caching options enabled.

> Memory might 
> be the main culprit though. Before setting your heap
> size to a fixed one, 
> you should note if the java process moves up to the
> 512 max quickly and 
> stays around there. If so, that could mean that you
> should crank it higher,
> maybe around 768. 
> 
> Anyway, I certainly hope that this is not typical! 
> I don't know as I 
> haven't gotten that far yet.  Has anyone else had
> similar results?

This is valid point: did anyone else did any
performance testing? I'd love to see a results. Also I
might be missing some performance-related
configuration setting (I got rid of almost all
logging, set to true all the "cache" properties I found)


		
__________________________________ 
Yahoo! FareChase: Search multiple travel sites in one click.
http://farechase.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org


Re: jetspeed2 performance

Posted by Aaron Evans <aa...@yahoo.ca>.
Anton <javantik <at> yahoo.com> writes:

> 
> Hi,
> 
> I am trying to use jetspeed2 M3. I noticed very slow
> performance: with 25 concurrent users it is rendering
> pages ~ 10 sec/page. I am using JMeter and hitting
> home page of the sample site
> (/jetspeed/portal/default-page.psml). Jetspeed runs
> with default configuration (HSQL), additional
> settings: set JAVA_OPTS=-Xmx512m -Xms128m in
> startup.bat. (This is windows machine, P4 3.0, 1gb
> RAM). 
> Also I noticed that it is using 100%CPU all the time.
> 
> Any ideas how to speed up jetspeed?
> 

Anton,
one thing you should probably do is put your min heap size to the same as your 
max (-Xms512m) because you could be running into a lot of garbage collection 
issues.

Also, what version of Java are you running, 1.4 or 1.5?

As for the CPU, it should not be doing much when jetspeed is idle and not 
being hit.  So if it is, then you definitely have a problem.  Memory might 
be the main culprit though. Before setting your heap size to a fixed one, 
you should note if the java process moves up to the 512 max quickly and 
stays around there. If so, that could mean that you should crank it higher,
maybe around 768. 

Anyway, I certainly hope that this is not typical!  I don't know as I 
haven't gotten that far yet.  Has anyone else had similar results?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org