Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Luca Vargetto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
kri shan
Ranch Hand
Posts: 1478
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You play around thread parameter settings like maxThreadSize,..
 
Peter Johnson
author
Bartender
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 3918
10
Chrome Fedora Hibernate
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch, Luca Vargetto
 
Luca Vargetto
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic