Hi Damon,

Thanks a lot for the answer! I have tested with setting the jvm 
parameters, it works!! This is great! 

Best wishes,
Weikun

________________________________________
From: damon henry [[email protected]]
Sent: 13 August 2014 17:14
To: [email protected]
Subject: RE: Low utilization of OFBiz on multi core servers

Hi Weikun,
I have no practical experience with OFBiz, other than lurking on this list for 
a few months and playing with the demo's.  I do have lots of experience 
supporting J2EE production applications.  I'm not sure what you are referring 
to as an overload condition, but it seems that you are watching CPU utilization 
on your server which appears fine, but some other indicator is telling you that 
OFBiz is overloaded, perhaps just running very slow???  Driving any J2EE 
application is a java virtual machine.  Are you monitoring the jvm in any way?  
It is possible for the jvm to run out of resources while the physical platform 
still has plenty available.  For instance you may not have assigned the jvm 
enough physical memory so it gets stuck swapping objects to a swap file or 
executing excessive garbage collections.  Other common choke points include 
database calls and thread pools.  Do you have a way to monitor these?  Of 
course, it could be poor code, but if that were the case there would likely be 
lots of people complaining about the same issue.  I would take a close look at 
the jvm environment you are spinning up.  In my experience adding more memory 
for the jvm to utilize is the most likely way to fix performance related 
problems.  You can control this with the -Xms -Xmx -MaxPermSize parameters 
being passed during startup.  You can use the jstat utility to watch what the 
jvm memory is doing realtime.
Damon

> From: [email protected]
> To: [email protected]
> Subject: RE: Low utilization of OFBiz on multi core servers
> Date: Wed, 13 Aug 2014 15:47:59 +0000
>
> Hi Adrian,
>
> Thanks for your quick reply. It seems that this didn't resolve the problem.
> I also notice that once it gets overloaded the utilization drops from 80%
> to 60%. This is what puzzles me because I thought when it gets overloaded,
> the utilization should increase.
>
> While I was testing an 8 core server, the overloaded behaviour happens
> when the utilization is only 40%, which is quite low.
>
> Best wishes,
> Weikun
>
> ________________________________________
> From: Adrian Crum [[email protected]]
> Sent: 13 August 2014 14:04
> To: [email protected]
> Subject: Re: Low utilization of OFBiz on multi core servers
>
> Your are running your tests on a development deployment. Try setting up
> your deployment for production:
>
> https://cwiki.apache.org/confluence/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide
>
> Adrian Crum
> Sandglass Software
> www.sandglass-software.com
>
> On 8/13/2014 1:12 PM, Wang, Weikun wrote:
> > Hi all,
> >
> > I'm using OFBiz to study the performance of web service in the cloud.
> > I found a problem when I deploy OFBiz on a 2 core server, which has
> > 4G memory. The OFBiz I used is the 12.04.03 version. The OS is ubuntu
> > 12.04.
> >
> > I was using OFBench to send requests to OFBiz. The OFBench is able
> > to send different kinds of requests, like login, logout, visit main page.
> > I was testing how many users I set in OFBench will saturate the server.
> > At some point I found that the server was overloaded when I set 20
> > users because the mean response time for the "main" request is over
> > 10 seconds. However, the CPU utilization is only 60%. I also did a test
> > for one core server. When it's overloaded, the utilization is almost 100%.
> >
> > I was using the default derby database. I monitor the memory of the
> > 2 core server, it was like 2GB used. So I guess memory is not a problem.
> > The other parameters are default. This is not the first time I notice this
> > problem. I also found this on other multi-core servers.
> >
> > Could anyone help me on this please?
> >
> > Thanks a lot in advance!!!!
> >
> > Best wishes,
> > Weikun
> >

Reply via email to