aspose file tools*
The moose likes Performance and the fly likes Performance - Glassfish + Apache (Apache Web Server in front of Glassfish) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Performance
Bookmark "Performance - Glassfish + Apache (Apache Web Server in front of Glassfish)" Watch "Performance - Glassfish + Apache (Apache Web Server in front of Glassfish)" New topic
Author

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

keiwer villabona ruiz
Greenhorn

Joined: Mar 27, 2012
Posts: 15
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!
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 39834
    
  28
Moving discussion as too difficult for “beginning”.
Ivan Jozsef Balazs
Rancher

Joined: May 22, 2012
Posts: 877
    
    5
Did you try any profiling to spot a possible bottleneck?
Winston Gutkowski
Bartender

Joined: Mar 17, 2011
Posts: 8223
    
  23

keiwer villabona ruiz wrote:Hi,

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

Winston


Isn't it funny how there's always time and money enough to do it WRONG?
Articles by Winston can be found here
keiwer villabona ruiz
Greenhorn

Joined: Mar 27, 2012
Posts: 15
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

Joined: Mar 17, 2011
Posts: 8223
    
  23

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

Joined: May 22, 2012
Posts: 877
    
    5
> 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

Joined: Mar 17, 2011
Posts: 8223
    
  23

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

    Joined: Mar 27, 2012
    Posts: 15
    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)
     
    jQuery in Action, 2nd edition
     
    subject: Performance - Glassfish + Apache (Apache Web Server in front of Glassfish)