Re: httpd - Get 200 but no data.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you James, it was an issue with the JSessionId. The shared memory file was not gettng created correctly, as a result the JSessionId was not being updated with node information.

On Fri, Dec 9, 2011 at 8:57 AM, Rapp, James <james.rapp@xxxxxxx> wrote:

I would examine the request using Fiddler (or another HTTP proxy then).  If the Request Headers do not contain a JSESSIONID, or other identifier you can use in the mod_jk configuration, it will not respect the session stickiness parameter and may be load balanced to another node.  You would need to identify some header value on the request, such as:

 

JSESSIONID=E085302BC98A73177D99D0DC9DADA54B.<node name>

 

So, if my JBOSS nodes are Machine1 and Machine2 the JSESSIONID should look like:

 

JSESSIONID=E085302BC98A73177D99D0DC9DADA54B.Machine1

 

Per the documentation I provided earlier.  I do not believe session stickiness can be implemented in mod_jk without this.

 

James Rapp

Senior Ecosystem Quality Manager, Global Ecosystem and Delivery Partners,   AGS Primary Support

 

 

From: R J [mailto:rjoshi.subscriptions@xxxxxxxxx]
Sent: Friday, December 09, 2011 9:32 AM


To: users@xxxxxxxxxxxxxxxx
Subject: Re: httpd - Get 200 but no data.

 

Hi Jim,

No I am not setting it as a part of the request.

Rajesh

On Thu, Dec 8, 2011 at 2:22 PM, Rapp, James <james.rapp@xxxxxxx> wrote:

Hi RJ,

Are you setting a JSESSIONID cookie as part of the request?  I had this problem in the past with an application that did not support cookie based session affinity.  In this case I ended up with several requests missing the JSESSIONID and they were being routed in round-robin fashion.

You can check the directives session_cookie and session_path in the workers reference:

http://tomcat.apache.org/connectors-doc/reference/workers.html

Regards,
Jim

James Rapp
Senior Ecosystem Quality Manager, Global Ecosystem and Delivery Partners,   AGS Primary Support


From: R J [mailto:rjoshi.subscriptions@xxxxxxxxx]
Sent: Thursday, December 08, 2011 1:15 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re: httpd - Get 200 but no data.


Hi Wade,

The httpd server is v2.2 and JBoss is 4.5. I am enclosing a copy of the workers.properties. There are 2 nodes in the cluster. I am enclosing copies of httpd.conf and workers.properties.

Some additional information that I just debugged into  - looks like the rendering is being sent to node 2 (instead of sending to node1). The following is the image url - http://10.38.188.9:8080/ReportBirtViewerWeb/preview?__sessionId=20111208_111922_807&__imageid=custom4fcb6c1341ebef5b74.png, and every time I access this url from browser, the rendering flip flops i.e it renders on first run, does not on second, then again renders on third, which leads me to believe that this could be switching between 2 different servers. Again this is just my guess, might be wrong.

RJ
On Thu, Dec 8, 2011 at 11:49 AM, Wade Evans <wade.p.evans@xxxxxxxxx> wrote:
RJ,

> What am I doing wrong in the configuration?
Can you share with us a bit of your configuration?

Thanks

 - Wade

On Thu, Dec 8, 2011 at 11:16 AM, R J <rjoshi.subscriptions@xxxxxxxxx> wrote:
Hi,

I am new to httpd. I am using httpd and mod_jk for load balancing. I am running it under sticky bit configuration. I have a page that renders image and data. The http response to the image request returns HTTP code 200, however the data is 0 bytes. Instead when I directly connect to any of the servers, the image renders correctly. What am I doing wrong in the configuration?

The application that I am trying to load balance is a BIRT reporting engine (v 2.6).

Appreciate any help or pointers.

Thank you.
RJ


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx

 



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux