The memory consumption is mainly controlled by the number of threads
configured in the conf/servicemix.properties file.
For each thread pool, there is a number of threads that stay alive
forever, and some that are destroyed if unused for a certain amount of
time.
All these parameters can be controlled, see
http://servicemix.apache.org/thread-pools.html for more infos.

Also, if you use some custom code, it may happen that you don't follow
all the jbi rules and this could lead to threads waiting a response
forever...

On Tue, Jul 29, 2008 at 3:37 PM, pratibhaG <[EMAIL PROTECTED]> wrote:
>
> I am doing load testing for servicemix.
>
> This is the data and observation I have.
> 18885 is the PID for servicemix
>
> 1)Started servicemix after it started the memory utilization is :
>  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 18885 pghogale  16   0 1112m 272m  36m S    2 31.0   1:33.30 java
>
> 2)hit request for 100 users concurrently first time. After all requests were
> processed:
> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 18885 pghogale  16   0 1598m 510m  37m S    6 58.2   3:27.13 java
>
> Everything was fine every request processed successfully
>
> 3)hit request for 100 users concurrently second time. After all requests
> were processed:
> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 18885 pghogale  16   0 1807m 563m 7372 S    7 64.2   5:46.78 java
>
> Everything was fine every request processed successfully
>
> 4)hit request for 100 users concurrently third time. After all requests were
> processed:
> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 18885 pghogale  16   0 2059m 656m 4440 S   12 74.8  17:26.24 java
>
> Here the procesing was very slow and I got timeout error at servicemix and
> at client.
>
> 5)After next 20 minutes of 4)
> PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
> 18885 pghogale  16   0 2100m 625m 3872 S   22 71.3  23:45.05 java
>
> Why servicemix consumes this much memory? Why it does not frees it up after
> some processing is done?
> Am I missing some configuration?
>
> Memory consumption just goes on increasing. Why so? Please help....
>
> -Pratibha
>
>
> --
> View this message in context: 
> http://www.nabble.com/Why-memory-utilization-is-so-high-for-servicemix--tp18712344p18712344.html
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/

Reply via email to