Re: [Resin-interest] apache resin 503 error when repeated requests from the same IP

2012-08-20 Thread Paul Cowan

On Aug 17, 2012, at 1:18 PM, Manidhar gudavalli wrote:

> Paul
> Thank you. Currently thread max is at 1400. Strange thing is, this happens on 
> two pages where the user posts data repeatedly. Some of these IP addresses 
> also repeating in the log. And, there are no issues with the page java code. 
> In my previous setup, I did not gave this problem. I moved to new box and I 
> keep the same resin configuration. However, I  switched to worker RPM in 
> apache and using JDK 1.7 . I dont see any errors in resin log.

Hi Mani,

The fact that the issue is occurring with Resin 4 also leads me to think it's 
not an issue related to Resin at all.  

It could be something related to Apache.  It would help you can take that out 
of the equation but accessing Resin directly.

The only other possibility that occurs to me right now is database lock 
contention for the same rows, since you say it's occurring when the same users 
connect. 

Thanks,
Paul


> 
> 
> I tried to migrate 4.x version and getting the same problem.
> thanks
> Mani
> 
> 
> On Fri, Aug 17, 2012 at 12:09 PM, Paul Cowan  wrote:
> 
> On Aug 17, 2012, at 11:58 AM, Manidhar gudavalli wrote:
> 
>> HI
>> I am seeing a strange 503 error  on the server. When the repeated requests 
>> coming from the clients with the same IP address, after some time, I am 
>> seeing 503 error in apache logs. These requests are all valid requests from 
>> valid ips.
>> 
>> I am using resin 3.1.12. and apache 2.2.3 and JDK 7.
>>  Is resin considering, the repeated request from same IP as spam?
>>  Is there any parameter that I can set to force resin to accepts the 
>> requests and not consider as spam?
> 
> Hi Mani,
> 
> A 503 error usually indicates Resin was unavailable to Apache (ie restarting) 
> or overloaded.  The client IP address should not matter.
> 
> You need to examine the Resin logs to see what is it doing during that time 
> and if there are any errors reported.
> 
> Resin may be running out of resources or paused for a long garbage 
> collection.  Often simply increasing thread-max to a larger number like 2048 
> helps, since the default is rather low for Resin 3.1.
> 
> Thanks,
> Paul
> 
> 
> 
>> 
>> 
>> Please help.
>> 
>> thanks
>> Mani
>> 
>> 
>> ___
>> resin-interest mailing list
>> resin-interest@caucho.com
>> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> ===
> Paul Cowan, Software Engineer
> Caucho Technology
> co...@caucho.com
> http://blog.caucho.com
> http://twitter.com/cauchoresin
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
> 
> 
> 
> 
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest

===
Paul Cowan, Software Engineer
Caucho Technology
co...@caucho.com
http://blog.caucho.com
http://twitter.com/cauchoresin

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] apache resin 503 error when repeated requests from the same IP

2012-08-17 Thread Manidhar gudavalli
Paul
Thank you. Currently thread max is at 1400. Strange thing is, this happens
on two pages where the user posts data repeatedly. Some of these IP
addresses also repeating in the log. And, there are no issues with the page
java code. In my previous setup, I did not gave this problem. I moved to
new box and I keep the same resin configuration. However, I  switched to
worker RPM in apache and using JDK 1.7 . I dont see any errors in resin log.


I tried to migrate 4.x version and getting the same problem.
thanks
Mani


On Fri, Aug 17, 2012 at 12:09 PM, Paul Cowan  wrote:

>
> On Aug 17, 2012, at 11:58 AM, Manidhar gudavalli wrote:
>
> HI
> I am seeing a strange 503 error  on the server. When the repeated requests
> coming from the clients with the same IP address, after some time, I am
> seeing 503 error in apache logs. These requests are all valid requests from
> valid ips.
>
> I am using resin 3.1.12. and apache 2.2.3 and JDK 7.
>  Is resin considering, the repeated request from same IP as spam?
>  Is there any parameter that I can set to force resin to accepts the
> requests and not consider as spam?
>
>
> Hi Mani,
>
> A 503 error usually indicates Resin was unavailable to Apache (ie
> restarting) or overloaded.  The client IP address should not matter.
>
> You need to examine the Resin logs to see what is it doing during that
> time and if there are any errors reported.
>
> Resin may be running out of resources or paused for a long garbage
> collection.  Often simply increasing thread-max to a larger number like
> 2048 helps, since the default is rather low for Resin 3.1.
>
> Thanks,
> Paul
>
>
>
>
>
> Please help.
>
> thanks
> Mani
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
> ===
> Paul Cowan, Software Engineer
> Caucho Technology
> co...@caucho.com
> http://blog.caucho.com
> http://twitter.com/cauchoresin
>
>
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest
>
>
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] apache resin 503 error when repeated requests from the same IP

2012-08-17 Thread Paul Cowan

On Aug 17, 2012, at 11:58 AM, Manidhar gudavalli wrote:

> HI
> I am seeing a strange 503 error  on the server. When the repeated requests 
> coming from the clients with the same IP address, after some time, I am 
> seeing 503 error in apache logs. These requests are all valid requests from 
> valid ips.
> 
> I am using resin 3.1.12. and apache 2.2.3 and JDK 7.
>  Is resin considering, the repeated request from same IP as spam?
>  Is there any parameter that I can set to force resin to accepts the requests 
> and not consider as spam?

Hi Mani,

A 503 error usually indicates Resin was unavailable to Apache (ie restarting) 
or overloaded.  The client IP address should not matter.

You need to examine the Resin logs to see what is it doing during that time and 
if there are any errors reported.

Resin may be running out of resources or paused for a long garbage collection.  
Often simply increasing thread-max to a larger number like 2048 helps, since 
the default is rather low for Resin 3.1.

Thanks,
Paul



> 
> 
> Please help.
> 
> thanks
> Mani
> 
> 
> ___
> resin-interest mailing list
> resin-interest@caucho.com
> http://maillist.caucho.com/mailman/listinfo/resin-interest

===
Paul Cowan, Software Engineer
Caucho Technology
co...@caucho.com
http://blog.caucho.com
http://twitter.com/cauchoresin

___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] Apache/Resin

2007-03-23 Thread Scott Ferguson


On Mar 23, 2007, at 11:15 AM, Gary Bauer wrote:


Hi

I have been trying to set-up Apache as the web  server for resin.   
I have tried manually and by using the setup.exe program, but  
cannot get it to work.


I try to launch Apache, it fails to start-up.  Looking at the Event  
Viewer, I see the error message "Syntax error on line 115 of C:/ 
tech/apache/conf/httpd.conf: Cannot load C:/resin-3.0.14/win32/ 
apache-2.0/mod_caucho.dll into server: The specified module could  
not be found."


You need to get Resin 3.0.23 and use the apache-2.2 mod_caucho.  The  
DLLs for Apache 2.0 and 2.2 are not compatible.


-- Scott



But the file definitely exists.  Could it be that for some reason  
it isn't recognised as a valid module?


This may be a question for the Apache community, but just in case  
there is a known issue  with this version of mod_caucho.dll, I  
thought I'd write here.


Details are:
Resin 3.0.14
Apache 2.2.4 on Windows XP.
mod_caucho.dll is timestamped (last modified) 31 August 2006,  
09:17:10

Entries from httpd.conf (all paths correct):

LoadModule caucho_module "C:/resin-3.0.14/win32/apache-2.0/ 
mod_caucho.dll"

AddModule mod_caucho.c

  ResinConfigServer localhost 6802
  CauchoStatus yes



Any ideas?

Thanks
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest