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


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

2012-08-17 Thread Manidhar gudavalli
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?


Please help.

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


[Resin-interest] 503 errors with apache resin connections

2012-08-04 Thread Manidhar gudavalli
I am using apache 2.2.22 and resin 4.0.29 version in linux on the the new
server. Once in a while, I see 503 errors in errors_log of apache. After
research, I realize that,  this is happening when ever resin takes couple
of seconds to respond to a request.
What configuration will fix this problem? I used to have same issue with
resin 3.x version, after increasing socket time out the problem was solved.
I am using the same setting in rein 4.
in server-default I have these settings:
 120s
  1400
  120s

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


[Resin-interest] File does not exist in Error Logs

2012-04-22 Thread Manidhar gudavalli
I am using Apache/2.2.20 and resin 3.1.12 . Recently, I am seeing lot of
strange errors in Apache error_logs. I dont see an issue to access the
website. However in the logs, I do see in this format. When the user
request for a page /test/data/  , the below error appears some times in the
logs. Apache looks for random number file (9780) in the directory. This is
happening to all files, and is very random.

[Sun Apr 22 09:07:44 2012] [error] [client 11.777.477.431] File does not
exist: /home/myaccount/public_html/test/data/9780, referer:
http://www.mydomain.com/test/data/

Is it happening because of misconfiguration of Apache/resin?

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


Re: [Resin-interest] java.util.zip.ZipException: error in opening zip file

2012-02-07 Thread Manidhar gudavalli
I have these settings in my conf  files for ulimits.

vi /etc/security/limits.conf

* soft nofiles 1024000
* hard nofiles 1024000

rootsoftnofiles 1024000
roothardnofiles 1024000

 cat /proc/sys/fs/file-max
2188737


On Tue, Feb 7, 2012 at 12:56 PM, Manidhar gudavalli wrote:

> I checked with lsof -u root | wc -l and for login id and for mysql. All
> are with in the limits less than 2400 . And, I set the limits too high at
> 100,000.
> thanks
> Mani
>
> On Tue, Feb 7, 2012 at 12:51 PM, Knut Forkalsrud <
> knut-cau...@forkalsrud.org> wrote:
>
>> You have too many open files.  Try "man ulimit" and "man lsof".
>>
>> -Knut
>>
>>
>> On Tue, Feb 7, 2012 at 10:17, Manidhar gudavalli wrote:
>>
>>> We are using resin 3.1.12 and java 6.  When the server is on heavy load,
>>> we are getting frequent errors. Number of open files count is still less.
>>> But we are seeing these errors. What could be the problem? There are no
>>> memory issues.
>>>
>>> java.util.zip.ZipException: error in opening zip file
>>> java.io.FileNotFoundException: /home/myuser/public_html/WEB-INF/web.xml
>>> (Too many open files)
>>>
>>> java.lang.NoClassDefFoundError
>>>
>>> java.sql.SQLException: Unable to connect to any hosts due to exception:
>>> java.net.SocketException: Too many open files
>>>
>>> ** BEGIN NESTED EXCEPTION **
>>>
>>> java.net.SocketException
>>> MESSAGE: Too many open files
>>>
>>> thanks in advance
>>> Mani
>>>
>>>
>>>
>>>
>>>
>>>
>>> ___
>>> 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
>>
>>
>
>
>
>


-- 
Dr. Mani Gudavalli
http://www.softschools.com
214 636 5824
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


Re: [Resin-interest] java.util.zip.ZipException: error in opening zip file

2012-02-07 Thread Manidhar gudavalli
I checked with lsof -u root | wc -l and for login id and for mysql. All are
with in the limits less than 2400 . And, I set the limits too high at
100,000.
thanks
Mani
On Tue, Feb 7, 2012 at 12:51 PM, Knut Forkalsrud  wrote:

> You have too many open files.  Try "man ulimit" and "man lsof".
>
> -Knut
>
>
> On Tue, Feb 7, 2012 at 10:17, Manidhar gudavalli wrote:
>
>> We are using resin 3.1.12 and java 6.  When the server is on heavy load,
>> we are getting frequent errors. Number of open files count is still less.
>> But we are seeing these errors. What could be the problem? There are no
>> memory issues.
>>
>> java.util.zip.ZipException: error in opening zip file
>> java.io.FileNotFoundException: /home/myuser/public_html/WEB-INF/web.xml
>> (Too many open files)
>>
>> java.lang.NoClassDefFoundError
>>
>> java.sql.SQLException: Unable to connect to any hosts due to exception:
>> java.net.SocketException: Too many open files
>>
>> ** BEGIN NESTED EXCEPTION **
>>
>> java.net.SocketException
>> MESSAGE: Too many open files
>>
>> thanks in advance
>> Mani
>>
>>
>>
>>
>>
>>
>> ___
>> 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
>
>
___
resin-interest mailing list
resin-interest@caucho.com
http://maillist.caucho.com/mailman/listinfo/resin-interest


[Resin-interest] java.util.zip.ZipException: error in opening zip file

2012-02-07 Thread Manidhar gudavalli
We are using resin 3.1.12 and java 6.  When the server is on heavy load, we
are getting frequent errors. Number of open files count is still less. But
we are seeing these errors. What could be the problem? There are no memory
issues.

java.util.zip.ZipException: error in opening zip file
java.io.FileNotFoundException: /home/myuser/public_html/WEB-INF/web.xml
(Too many open files)

java.lang.NoClassDefFoundError

java.sql.SQLException: Unable to connect to any hosts due to exception:
java.net.SocketException: Too many open files

** BEGIN NESTED EXCEPTION **

java.net.SocketException
MESSAGE: Too many open files

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