• Post Reply Bookmark Topic Watch Topic
  • New Topic

Tomcat Server Performance

 
Luis Alves
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I need help to solve a question. How can I get best performance of a Tomcat server. This tomcat server give support to some data bases via LDAP authentication, with 200 users each application generates 100kbytes of traffic. On the server there is only one 100Mb interface.
What are the pros and cons, what could improve, and how
 
Tim Holloway
Bartender
Posts: 18414
58
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upgrading your LAN/server NIC for 1GB service would be a good start. These days even cheap motherboards come with one built in.

I am unclear on whether your LDAP authentication code is in the web application or you are talking about LDAP authentication for the Tomcat itself (for example, the LDAPRealm authenticator).

Without more information, it's hard to say what could be done.
 
Luis Alves
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Upgrading your LAN/server NIC for 1GB service would be a good start. These days even cheap motherboards come with one built in.

I am unclear on whether your LDAP authentication code is in the web application or you are talking about LDAP authentication for the Tomcat itself (for example, the LDAPRealm authenticator).

Without more information, it's hard to say what could be done.


This is a question for a Test. I have no more information. So it is not possible to upgrade to 1GB. Any ideas?
Thank you.
 
Tim Holloway
Bartender
Posts: 18414
58
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Absolutely none that don't involve doing something violent to the person who designed the test.

There's not even the beginning of enough information to come up with possible solutions.

In fact, I suspect that this may be one of those very annoying types of test questions where the only way to get the "right" answer is to be ignorant enough of the subject to only be able to see one single answer - like the test creator was.
 
Winston Gutkowski
Bartender
Posts: 10571
64
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim Holloway wrote:Absolutely none that don't involve doing something violent to the person who designed the test...


Preferably involving reproductive areas.

@Luis: My suggestion is that you give us the Test question exactly as it was posed to you, because otherwise there are just too many variables to give any reasonable advice.

Winston
 
Luis Alves
Greenhorn
Posts: 4
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Winston Gutkowski wrote:
Tim Holloway wrote:Absolutely none that don't involve doing something violent to the person who designed the test...


Preferably involving reproductive areas.

@Luis: My suggestion is that you give us the Test question exactly as it was posed to you, because otherwise there are just too many variables to give any reasonable advice.

Winston


The full question is:

"Using a Tomcat server, to give support a one Java webservice, with some data bases's and LDAP authentication with 200 users where each application generates 100kbytes of traffic. the server there is only one interface 100Mb.
Describe the pros and cons, what could be improved, and how."
 
Winston Gutkowski
Bartender
Posts: 10571
64
Eclipse IDE Hibernate Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Luis Alves wrote:The full question is:
"Using a Tomcat server, to give support a one Java webservice, with some data bases's and LDAP authentication with 200 users where each application generates 100kbytes of traffic. the server there is only one interface 100Mb.
Describe the pros and cons, what could be improved, and how."

OK, thanks for that.

However, if it is the question as it was given to you, it only confirms Tim's (and my) assessment.

However, I'd concentrate on the
"Describe the pros and cons, what could be improved, and how" bit.

Tim has already given you one improvement (NIC upgrade), and I don't see anywhere in the question that says it can't be done.

A few others:
  • Put the LDAP server somewhere else.
  • Put the database somewhere else.
  • Add memory.
  • Upgrade the CPU.

  • Because the major "con" I see of that set-up - if indeed, all the described items are on one machine - is that it's a single point of failure.

    And I hate to say, but I'm having problems with coming up with any "pros" at the moment.

    Winston
     
    Tim Moores
    Saloon Keeper
    Posts: 3260
    54
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    The word "application" is odd in this context; does it mean "invocation"?

    I agree with Tim H and Winston, there's way too little information to go on.
     
    Luis Alves
    Greenhorn
    Posts: 4
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Winston Gutkowski wrote:
    Luis Alves wrote:The full question is:
    "Using a Tomcat server, to give support a one Java webservice, with some data bases's and LDAP authentication with 200 users where each application generates 100kbytes of traffic. the server there is only one interface 100Mb.
    Describe the pros and cons, what could be improved, and how."

    OK, thanks for that.

    However, if it is the question as it was given to you, it only confirms Tim's (and my) assessment.

    However, I'd concentrate on the
    "Describe the pros and cons, what could be improved, and how" bit.

    Tim has already given you one improvement (NIC upgrade), and I don't see anywhere in the question that says it can't be done.

    A few others:
  • Put the LDAP server somewhere else.
  • Put the database somewhere else.
  • Add memory.
  • Upgrade the CPU.

  • Because the major "con" I see of that set-up - if indeed, all the described items are on one machine - is that it's a single point of failure.

    And I hate to say, but I'm having problems with coming up with any "pros" at the moment.

    Winston


    Despite the limited amount of information, thank you for the information. It is already a help.
     
    Tim Holloway
    Bartender
    Posts: 18414
    58
    Android Eclipse IDE Linux
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    In the so-called "Real World", we don't just throw out random wild ideas though, we measure what's going on and where it's happening and use that as a starting point. I can come out with random suggestions all day long, but the overwhelming majority of them wouldn't do anything useful, so most of them would be a waste of time.

    Here, we don't even know for sure if the LDAP requests are coming from the webapp or Tomcat, much less what might need tuning.
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!