aspose file tools*
The moose likes JBoss/WildFly and the fly likes Two JBoss Instances on the same server or Double size heap? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Two JBoss Instances on the same server or Double size heap?" Watch "Two JBoss Instances on the same server or Double size heap?" New topic
Author

Two JBoss Instances on the same server or Double size heap?

Luca Vargetto
Greenhorn

Joined: Dec 23, 2010
Posts: 2
I'm using JBoss (v=5.1; OS = CentoOS 5 - 8GB RAM) with the following jvm params:
-Xmx3072m
-Xms3072m
-XX:NewRatio=2
-XX:SurvivorRatio=6
What is the best way to duplicate the number of clients? Two JBoss Instances on the same server or Double size heap?

thank you in advance
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

That question is impossible to answer without knowing something about the apps, how many users you have, and how busy the apps are.

How full is the heap usually? What is the working set size for the app server? You will have to gather GC statistics to answer these questions. And you need this information for each app.


JBoss In Action
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1373
You play around thread parameter settings like maxThreadSize,..
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

kri shan wrote:You play around thread parameter settings like maxThreadSize,..

Huh? This advice makes no sense whatsoever. Do you even know how threads are used in a Java EE app server??? Changing thread parameters has no bearing whatsoever on how many apps can be deployed to an app server.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3832

Welcome to JavaRanch, Luca Vargetto


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
Luca Vargetto
Greenhorn

Joined: Dec 23, 2010
Posts: 2
Hi Peter,

Peter Johnson wrote:That question is impossible to answer without knowing something about the apps, how many users you have,

I have about 200 users.

Peter Johnson wrote: and how busy the apps are.

At moment not so busy. Normally I have 40 users working simultaneously, but I have to reach 500 simultaneous users.

Peter Johnson wrote:
How full is the heap usually?

I measured the heap consumption using JConsole. JBoss needs about 190 MB (tenured) and a client needs about 7MB (HTTP Session + Seam).
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5830
    
    7

Based on what you wrote, and assuming the the second app has the same usage patterns as the first, then you should just deploy the app to the same instance of JBoss AS. And you could probably decrease the heap size to around 800MB-1200MB and still be OK (my usual guideline is to have 4 times the amount of heap as what is left over after a major collection after the app gets warmed up).
 
wood burning stoves
 
subject: Two JBoss Instances on the same server or Double size heap?