This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques and have Mario Casciaro & Luciano Mammino on-line!
See this thread for details.
Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

Performance - Glassfish + Apache (Apache Web Server in front of Glassfish)

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a web services in glassfish server

and

an application in Apache Web Server, The application is consuming these web services that are in glassfish.

my problem is that it runs very slow in production.

I was researching about the performance between Apache and Glassfish. And I got something like AJP / mod_jk.

but not if it is the solution.

someone please guide me.

releases Glassfish 3.1 and Apache 2.2.8

thanks in advance!
 
Marshal
Posts: 74059
332
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving discussion as too difficult for “beginning”.
 
Rancher
Posts: 1043
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you try any profiling to spot a possible bottleneck?
 
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

keiwer villabona ruiz wrote:Hi,


Keiwer, please don't post multiple threads on the same subject. I've locked your other two.

Winston
 
keiwer villabona ruiz
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lo siento por replicar el hilo. Quizas no me di cuenta que ya lo habia hecho el posteo Winston.

Ivan thanks for your reply. Apache isn't set up for high performance.
 
Winston Gutkowski
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

keiwer villabona ruiz wrote:Lo siento por replicar el hilo. Quizas no me di cuenta que ya lo habia hecho el posteo Winston.


Sin problemas.

(Hope that's right )

Winston

 
Ivan Jozsef Balazs
Rancher
Posts: 1043
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
> Apache isn't set up for high performance.

The question was whether you have an idea: is Apache slow, is the AS behind it slow, is the communication between them slow?

A sidenote: I do not consider polite using a different language in a forum of a given language.
Some of you might understand those posts, but what about the rest of us?

 
Winston Gutkowski
Bartender
Posts: 10780
71
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

keiwer villabona ruiz wrote:an application in Apache Web Server, The application is consuming these web services that are in glassfish.
my problem is that it runs very slow in production.
I was researching about the performance between Apache and Glassfish. And I got something like AJP / mod_jk.
but not if it is the solution.


It seems highly unlikely to me. Apache has been running perfectly happily on thousands (probably millions) of servers for many, many years; and I can't imagine that you're the first person to team it up with Glassfish. It might be worth checking with a Glassfish forum to see if there are any known performance issues, but it seems far more likely that the problem lies in your own code.

I can only offer a few general bits of advice when dealing with performance issues:
  • 1. Look for specific bottlenecks.
  • 2. Measure everything.
  • 3. Don't make any assumptions about code that you have no control over (ie, in your case, Apache and Glassfish).
  • 4. (Whatever you do) Don't change anything until you KNOW what the problem is.
    If you need to make an alteration for testing purposes, back it out when the test is finished.
  • 5. Don't use vague phrases like "runs very slow". How "slow" is it? How "fast" does it need to be?

  • One possible thing to think about, if you have end users, is to create Service Level Agreements that specify exactly how fast the system is expected to run.

    HIH

    Winston
     
    keiwer villabona ruiz
    Greenhorn
    Posts: 15
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    I meant at that Apache was installed and we do not configured for high performance (Apache Performance Tuning). addition that the library (nusoap) for consuming web services that we use lacked a cache setting.

    already solved the problem. Thanks for your feedback.

    wiston (Y)
     
    You showed up just in time for the waffles! And this tiny ad:
    Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    reply
      Bookmark Topic Watch Topic
    • New Topic