RE: too many open files issue in tomcat

2011-06-27 Thread Guy Katz
I think you will get better help by providing the following:
 -Which tomcat version are you using?
-Which OS are you deploying on?
-What is your memory setting for tomcat (if explicitly set)?
-What's your file descriptor configuration in the OS (if explicitly
set)?
-does the problem arrive alongside an out of memory error?
-are there any 'IO heavy' processes that run on your deployment machine
along with tomcat (DB, etc)?

-Original Message-
From: dasari@wipro.com [mailto:dasari@wipro.com] 
Sent: Monday, June 27, 2011 12:54 PM
To: users@tomcat.apache.org
Subject: too many open files issue in tomcat

Hi,

 

I am facing the issue of "too many open files" in the tomcat and not
able to process any request further. Did somebody faced the same problem
and what is the problem and solution for the same.

 

This issue is creating lot of problem on the production systems and if
somebody has already solved this issue, then provide us the solution.

 

Regards

Dayakar


Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments
to this message are intended for the exclusive use of the addressee(s)
and may contain proprietary, confidential or privileged information. If
you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and
destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient
should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus
transmitted by this email. 

www.wipro.com
##
This message is intended only for the designated recipient(s).It may contain 
confidential or proprietary information.
If you are not the designated recipient, you may not review, copy or distribute 
this message.
If you have mistakenly received this message, please notify the sender by a 
reply e-mail and delete this message. 
Thank you.
##

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: [tomcat 7 migartion] cannot load images with jsession id in url

2011-06-23 Thread Guy Katz
Thanks you were correct.
It was my code. Though my code did work in tomcat 6 which I very
surprising...
Found the bug in my code...

-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] 
Sent: Thursday, June 23, 2011 2:54 AM
To: Tomcat Users List
Subject: Re: [tomcat 7 migartion] cannot load images with jsession id in
url

2011/6/22 Guy Katz :
> Hi all;
>
> I am migrating to tomcat 7 from 6.
>
> In tomcat 6 urls like
> http://68.169.51.83:8080/gallery/wave_surfing_gallery_thumb_652.jpg;js
> es
> sionid=A859D830090798F238DABADC713C1327 would load an image but in 
> tomcat 7 I get the following response: The Image "." cannot be 
> displayed because it contains errors
>

First you will have to find, what the difference is.

 - corrupted file  (e.g. by transferring a binary file as text over FTP,
or using a Writer to serve binary data)
 - truncated file
 - wrong response headers

E.g. with wget --save-headers

If Tomcat 7 were not able to serve images it would have been noted a
long ago.

Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

##
This message is intended only for the designated recipient(s).It may contain 
confidential or proprietary information.
If you are not the designated recipient, you may not review, copy or distribute 
this message.
If you have mistakenly received this message, please notify the sender by a 
reply e-mail and delete this message. 
Thank you.
##

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



[tomcat 7 migartion] cannot load images with jsession id in url

2011-06-21 Thread Guy Katz
Hi all;

I am migrating to tomcat 7 from 6.

In tomcat 6 urls like
http://68.169.51.83:8080/gallery/wave_surfing_gallery_thumb_652.jpg;jses
sionid=A859D830090798F238DABADC713C1327 would load an image but in
tomcat 7 I get the following response: The Image "." cannot be
displayed because it contains errors

I noticed there were some changes in configuration (by looking in the
migration guide) but I still can't understand how to overcome this.

I would appreciate your help.

Thanks.

 

 

Guy Katz

NetXplorer Server Team Leader
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 9288
Fax: + 972 9 744 3626
gk...@allot.com <mailto:gk...@allot.com> 
www.allot.com <http://www.allot.com> 

 

 


##
This message is intended only for the designated recipient(s).It may contain 
confidential or proprietary information.
If you are not the designated recipient, you may not review, copy or distribute 
this message.
If you have mistakenly received this message, please notify the sender by a 
reply e-mail and delete this message. 
Thank you.
##


RE: [mod_jk] problem serving URIs with 'special characters'

2007-08-27 Thread Guy Katz
Hi;
Sorry for the beginner's question but does this means that I need to
compile mod_jk1.2.25 against my apache 2.0.52? Or can I still use the
1.2.25 from the tomcat connector downloads page as a drop-in
replacement.
Thanks.

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 28, 2007 8:22 AM
To: Tomcat Users List
Subject: Re: [mod_jk] problem serving URIs with 'special characters'

Guy Katz wrote:
> Thanks;
> one question though.
> The downloads page states that mod_jk1.2.25 is for apache 2.0.59 and
later only.
> i have a 2.0.52 installation(on centos) that i can't change. does this
mean i am stuck here? or can mod_jk1.2.25 still work with apache 2.0.52
> thanks in advance.
>
>   

Yes. It can work with 2.0.49 an up.
The notion is for produced binaries.

Regards,
Mladen


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [mod_jk] problem serving URIs with 'special characters'

2007-08-27 Thread Guy Katz
Thanks;
one question though.
The downloads page states that mod_jk1.2.25 is for apache 2.0.59 and later only.
i have a 2.0.52 installation(on centos) that i can't change. does this mean i 
am stuck here? or can mod_jk1.2.25 still work with apache 2.0.52
thanks in advance.


-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]
Sent: Sun 8/26/2007 11:33 PM
To: Tomcat Users List
Subject: Re: [mod_jk] problem serving URIs with 'special characters'
 
Guy Katz wrote:
> Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)
> 
> Recently, I encountered a problem with URIs that has 'non western
> European' characters (for example:
> http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
> ). I noticed that apache was forwarding to tomcat a different URI than
> the original which caused problems in my site.
> 
> Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
> fixed my problem. However, I then encountered a different problem then.
> On the first hit, some images were not displayed in the browser (not
> served to it). So I checked the forums and found out about the
> JkStripSession. I figured it might help so I turned it on but nothing
> happened.

If you absolutely need to forward the original URI, you should set

JkOptions +JkForwardURIUnparsed

This has negative side effects:

- if you rewrite the URL via mod_rewrite, and then forward via mod_jk, 
mod_jk wil still forward the original URI, not the rewritten one

- the Tomcat AJP connector expects a session id that does not come via a 
cookie but via URL encoding as ";jsessionid=..." in the URI. It has to 
be a semicolon, not it's percent encoded equivalent.

The last jk 1.2.25 has a new forwarding policy. It reencodes everything 
that does not seem save, and that way tries to forward a URI that should 
fit into most cases- I would suggest you try that version without any 
JkOptions.

Also: with log level debug, it logs a line similar to:

[Sun Aug 26 01:12:03.482 2007] [27669:0] [debug]
init_ws_service::mod_jk.c (782): Service protocol=HTTP/1.1 method=GET
host=(null) addr=127.0.0.1 name=fraxinus.entenhausen.zz port=8080
auth=Basic user=jung laddr=127.0.0.1 raddr=127.0.0.1 uri=/auth.jsp

for every request. The line includes the URI exactly as it got forwarded 
to Tomcat, so you might be able to debug your problems more easily. The 
line exist also in the debug log of earlier versions, but for them does 
not include the uri.

> My questions are:
> 
> 1.Should the JkStripSession help in this case? Was there a known
> bug in my apache/mod_jk versions related to this (couldn't find in
> bugzilla)?

JkStripSession is only important, if your static content gets served by 
Apache, but your webapp added URL encoded sessions to the links.

> 2.How should I solve this? The only thing I need is to be able to
> forward URIs with 'special characters' as is to tomcat for a specific
> application (context)

Concerning the broken links: add an access log to Tomcat, check the 
request in the Apache access log, the Tomcat access log and the uri in 
the jk debug log to understand, what's wrong with those requests.

> I am really out of my element here so I would appreciate your help
> greatly.
> 
> Thanks in advance

Regards,

Rainer


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: [mod_jk] problem serving URIs with 'special characters'

2007-08-26 Thread Guy Katz
I am not sure what you are reffering to by saying URLencoding but:
the default jkoption value in the mod_jk in the version i have processes the 
URI in a way that changes its value. that is why i changed it to  
+ForwardURICompatUnparsed but than i encountered the image loading problem.
i would be happy to hear ideas but please be more specific.
thanks.



From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Sun 8/26/2007 10:11 PM
To: users@tomcat.apache.org
Subject: Re: [mod_jk] problem serving URIs with 'special characters'



URLEncoding doesn't take care of this problem?


In Response To:

Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)

Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.



Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.



My questions are:

1.  Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2.  How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)



I am really out of my element here so I would appreciate your help
greatly.

Thanks in advance



Related forum topic I found:

http://www.nabble.com/Image-problem-tf3629476.html#a10141944

http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432





The configuration I thought would work but had the image loading
problem:

JkMount /* ajp13
JkStripSession On

JkOptions +ForwardURICompatUnparsed



#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L]







Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
[EMAIL PROTECTED]
www.allot.com <http://www.allot.com/>







 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11219

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

[mod_jk] problem serving URIs with 'special characters'

2007-08-26 Thread Guy Katz
Hi; (using: centos, apache 2.0.52, mod_jk 1.2.21, tomcat 6)

Recently, I encountered a problem with URIs that has 'non western
European' characters (for example:
http://www.somehost.com/roller/admin/entry/nofx_%D7%91%D7%93%D7%A8%D7%9A
). I noticed that apache was forwarding to tomcat a different URI than
the original which caused problems in my site.

 

Digging into the subject I found the JkOptions +ForwardURICompatUnparsed
fixed my problem. However, I then encountered a different problem then.
On the first hit, some images were not displayed in the browser (not
served to it). So I checked the forums and found out about the
JkStripSession. I figured it might help so I turned it on but nothing
happened.

 

My questions are:

1.  Should the JkStripSession help in this case? Was there a known
bug in my apache/mod_jk versions related to this (couldn't find in
bugzilla)?
2.  How should I solve this? The only thing I need is to be able to
forward URIs with 'special characters' as is to tomcat for a specific
application (context)

 

I am really out of my element here so I would appreciate your help
greatly.

Thanks in advance

 

Related forum topic I found:

http://www.nabble.com/Image-problem-tf3629476.html#a10141944

http://www.nabble.com/-mod_jk--JkStripSession-directive-tf3294527.html#a
9164432

 

 

The configuration I thought would work but had the image loading
problem:

JkMount /* ajp13
JkStripSession On

JkOptions +ForwardURICompatUnparsed



#i think the following has nothing to do with my problem but its here
anyway...
RewriteEngine On
RewriteCond %{HTTP_HOST} !^waves.co.il$ [NC] RewriteRule ^(.*)$
http://www.xwave.co.il$1 [R,L] 

 

 

 

Guy Katz
R&D
Allot Communications * a mind for networks(tm)
Tel: + 972 9 761 928 8
Fax: + 972 9 744 362 6
[EMAIL PROTECTED]
www.allot.com <http://www.allot.com/>