[users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread R J
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


Re: [users@httpd] httpd - Get 200 but no data.

2011-12-08 Thread R J
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  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 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
>>
>
>


httpd.conf
Description: Binary data


workers.properties
Description: Binary data

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

Re: [users@httpd] httpd - Get 200 but no data.

2011-12-09 Thread R J
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  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.subscripti...@gmail.com]
> Sent: Thursday, December 08, 2011 1:15 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] 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 
> 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 
> 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 http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] httpd - Get 200 but no data.

2011-12-14 Thread R J
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  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.
>
> ** **
>
> 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.subscripti...@gmail.com]
> *Sent:* Friday, December 09, 2011 9:32 AM
>
> *To:* users@httpd.apache.org
> *Subject:* Re: [users@httpd] 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  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.subscripti...@gmail.com]
> Sent: Thursday, December 08, 2011 1:15 PM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] 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 
> 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 
> 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 http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
> ** **
>


[users@httpd] Question on ApacheBench - Modifying POST Data between runs.

2011-12-14 Thread R J
Hi Everyone,

I am using ApacheBench to for load testing. First time user. One of the
tests is to POST data to the Web Server. I have the post file, with post
data that I provide to the bench. Between calls I need to modify the post
data. How can I do this?

For example:
Login POST has "username=admin&password=admin". How can I change this to
"username=admin1&password=admin123" during test?

Thank you.

RJ


Re: [users@httpd] Question on ApacheBench - Modifying POST Data between runs.

2011-12-15 Thread R J
Thank you for your suggestions.

On Wed, Dec 14, 2011 at 5:20 PM, Simone Caruso wrote:

> Jmeter is a great tool for benchmarking
>
> --
> Simone Caruso
> IT Consultant
> +39 349 65 90 805
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


Re: [users@httpd] Question on ApacheBench - Modifying POST Data between runs.

2011-12-16 Thread R J
Thank you Simone. JMeter is indeed a great tool.

On Wed, Dec 14, 2011 at 5:20 PM, Simone Caruso wrote:

> Jmeter is a great tool for benchmarking
>
> --
> Simone Caruso
> IT Consultant
> +39 349 65 90 805
>
> -
> The official User-To-User support forum of the Apache HTTP Server Project.
> See http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>