Win a copy of Terraform in Action this week in the Cloud 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:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

Apache/Jboss issue

 
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If this is not the appropriate forum, please move it to the right one.

We have an application. The architecture is as below

1 load balancer (apache), which redirects to 2 app servers (jboss). The site is working fine and I am able to access it fine. But sometimes, randomly the homepage takes a while (like 30-40 secs)
to load. I tried checking the logs but could not figure out why.

I used the httptraffic analyzer, fiddler to see the traffic, but it just says the request/response took 30 secs or so.

I checked the apache access logs, mod_jk.log.

My configurations are below


mod-jk.conf
-----------



-----------------------------
-------------------------------


uriworkermap.properties
------------------------

# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker
/=loadbalancer
/*=loadbalancer


-----------------------------
-------------------------------

workers.properties
-----------------



-----------------------------
-------------------------------

my jboss server.xml - $JBOSS_HOME/server/default/deploy/jbossweb.sar/server.xml
-------------------


<Connector protocol="AJP/1.3" port="8009" address="${jboss.bind.address}"
redirectPort="8443" />


---------------------------------
---------------------------------


The logs from access log is below

The issue where it took time - look at the seconds column



The one after the issue


---------------------------------


Would it be a cache or timeout issue?

Any help is appreciated. Thanks.
 
Ranch Hand
Posts: 344
Oracle Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In the past I've had weird HTTP related performance issues and with a similar setup (Apache http, mod_jk, JBoss AS). Downloading and compiling the latest version of mod_jk fixed that for me. Not sure if that would fix your particular issue, but it might be worth the try.
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I will check with the team to see if it is possible, but I dont think it would be. I am kind of stuck with the versions.

I also see this happen only when the server is not hit for sometime, so it kind of times out and re-establishes connections or atleast that is what I am thinking.

Any other suggestions. Thanks.

 
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