Read timed out in tomcat 4.1.31

2010-04-13 Thread Ningappa Koneri
Dear All,

I am getting a strange issue with an application deployed under tomcat 
4(4.1.31) that when I am trying to upload a file through browser along with the 
form data to the tomcat, file stream reader getting read timed out exception. 
In fileupload application I am using following code snippet.


MultipartParser parser = new MultipartParser((HttpServletRequest) request, 1805 
* 1024);
Part aPart;
while ((aPart = parser.readNextPart()) != null) {
if (aPart.isFile() == false) {
//read form data
} else if (aPart.isFile() == true) {
//read file
InputStream is = fPart.getInputStream();
bis = new BufferedInputStream(is);
byte[] buffer = new byte[1024 * 1024];
ByteArrayOutputStream baostream = new ByteArrayOutputStream();
int bytesRead = 0;
while ((bytesRead = bis.read(buffer)) != -1) { --> I am getting 
read timed out exception here

}
  }
}
}

One more thing what is observed that tomcat is taking 1025m virtual memory :(.

When I upload a file which is smaller in size It's getting succeeded.

Any idea ?

Regards,
Ningappa Koneri



This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



RE: Tomcat 6 on RHEL3

2010-03-17 Thread Ningappa Koneri
Hi Gurkan,

I guess ur right, as tomcat is trying to deploy the applications it's taking 
lot of time because of compilation only I guess. One more thing is why home 
page is not coming? The http request bytes got stuck in recv queue of tomcat 
port. How to get rid of this situation ? can't v disable the compiling of jsp 
files at startup ?

It took abt 1328 seconds to startup the applications. Please help.

INFO: Server startup in 1327549 ms :(

Regards,
Ningappa Koneri
mLifestyle | www.comviva.com



-Original Message-
From: Gurkan Erdogdu [mailto:cgurkanerdo...@gmail.com]
Sent: Tuesday, March 16, 2010 5:32 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 on RHEL3

Please look at logs file under directory logs. Maybe your JSP files are so
complicated and takes time while Tomcat compiles them on the first time.

2010/3/16 Ningappa Koneri 

> Sorry forgot to mention, it's apache tomcat 6.0.20.
>
> Regards,
> Ningappa Koneri
> mLifestyle | www.comviva.com
>
>
>
> -Original Message-
> From: peter.crowth...@googlemail.com [mailto:
> peter.crowth...@googlemail.com] On Behalf Of Peter Crowther
> Sent: Tuesday, March 16, 2010 3:39 PM
> To: Tomcat Users List
> Subject: Re: Tomcat 6 on RHEL3
>
> On 16 March 2010 10:02, Ningappa Koneri 
> wrote:
>
> > Dear All,
> >
> > I have an issue with tomcat 6
>
>
> Version?
>
>
> > which is deployed under RHEL3 with JDK5
>
>
> Version?
>
>
> > , the problem is tomcat is taking hell lot of time in deploying the war
> > files when started.
> > It's so busy that not responding back with home page also, what could be
> > the problem ?
> >
> > How long is "hell lot"?  The log message should tell you "Tomcat started
> in
> ms".
>
> What's the spec of the machine on which you're running Tomcat?  How much
> heap and permspace have you allocated to the Java virtual machine in which
> Tomcat is running, and how much memory is it using?  (top will tell you how
> much memory it's using; it will be more than heap+permspace due to other
> operating system structures)
>
> Is the machine busy during all this time?  If so, what is the limiting
> factor - disk i/o, memory or CPU?  Run top to get an idea of CPU usage,
> vmstat (I use "vmstat 5" until I have a better idea) to get an idea of disk
> i/o.
>
> How large is the war file?  If you unzip the war files (a war file is just
> a
> zip file with a different extension) on the same machine, how long does it
> take?
>
> Lots of questions, but we need more information to be able to answer.
>
> - Peter
>
> This e-mail and all material transmitted with it are for the use of the
> intended recipient(s) ONLY and contains confidential and/or privileged
> information. If you are not the intended recipient, please contact the
> sender by reply e-mail and destroy all copies and the original message. Any
> unauthorized review, use, disclosure, dissemination, forwarding, printing or
> copying of this email or any action taken pursuant to the contents of the
> present e-mail is strictly prohibited and is unlawful.
> The recipient acknowledges that Comviva Technologies Limited or its
> management or directors, are unable to exercise control or ensure the
> integrity over /of the contents of the information contained in e-mail. Any
> views expressed herein are those of the individual sender only and no
> binding nature of the contents shall be implied or assumed unless the sender
> does so expressly with due authority of Comviva Technologies Limited. E-mail
> and any contents transmitted with it are prone to viruses and related
> defects despite all efforts to avoid such by Comviva Technologies Limited.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


--
Gurkan Erdogdu
http://gurkanerdogdu.blogspot.com

This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are tho

RE: Tomcat 6 on RHEL3

2010-03-16 Thread Ningappa Koneri
Sorry forgot to mention, it's apache tomcat 6.0.20.

Regards,
Ningappa Koneri
mLifestyle | www.comviva.com



-Original Message-
From: peter.crowth...@googlemail.com [mailto:peter.crowth...@googlemail.com] On 
Behalf Of Peter Crowther
Sent: Tuesday, March 16, 2010 3:39 PM
To: Tomcat Users List
Subject: Re: Tomcat 6 on RHEL3

On 16 March 2010 10:02, Ningappa Koneri  wrote:

> Dear All,
>
> I have an issue with tomcat 6


Version?


> which is deployed under RHEL3 with JDK5


Version?


> , the problem is tomcat is taking hell lot of time in deploying the war
> files when started.
> It's so busy that not responding back with home page also, what could be
> the problem ?
>
> How long is "hell lot"?  The log message should tell you "Tomcat started in
ms".

What's the spec of the machine on which you're running Tomcat?  How much
heap and permspace have you allocated to the Java virtual machine in which
Tomcat is running, and how much memory is it using?  (top will tell you how
much memory it's using; it will be more than heap+permspace due to other
operating system structures)

Is the machine busy during all this time?  If so, what is the limiting
factor - disk i/o, memory or CPU?  Run top to get an idea of CPU usage,
vmstat (I use "vmstat 5" until I have a better idea) to get an idea of disk
i/o.

How large is the war file?  If you unzip the war files (a war file is just a
zip file with a different extension) on the same machine, how long does it
take?

Lots of questions, but we need more information to be able to answer.

- Peter

This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



Tomcat 6 on RHEL3

2010-03-16 Thread Ningappa Koneri
Dear All,

I have an issue with tomcat 6 which is deployed under RHEL3 with JDK5, the 
problem is tomcat is taking hell lot of time in deploying the war files when 
started.
It's so busy that not responding back with home page also, what could be the 
problem ?


Regards,
Ningappa Koneri
mLifestyle | www.comviva.com




This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



RE: can't call my servlet on Tomcat 6 (Error 404)

2010-01-31 Thread Ningappa Koneri
As Konstantin said in ur case the URL should be 
http://localhost:8080/download/download/file.


Regards,
Ningappa Koneri
mLifestyle | www.comviva.com



-Original Message-
From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
Sent: Monday, February 01, 2010 5:30 AM
To: Tomcat Users List
Subject: Re: can't call my servlet on Tomcat 6 (Error 404)

2010/2/1 hbral :
>
> tomcat: 6.0.24
> os: debian linux 2.6.12.6-xenU
> jvm: 1.6.0_12-b04
>
> log files contain nothing use full other than that i successfully deployed
> the war file
>

What URL are you calling by your browser?

If your war was named "mywar.war" then you should call
http://localhost:8080/mywar/myservlet

Also,
http://wiki.apache.org/tomcat/HowTo#How_do_I_make_my_web_application_be_the_Tomcat_default_application_.3F

Best regards,
Konstantin Kolinko

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


This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



RE: Question on allowLinking

2009-09-16 Thread Ningappa Koneri
Hi Pid,

Thanks for your reply and sorry for the delayed ack.

Basically we are creating a softlink to a directory (containing some sound 
files quite large in size) inside the webapps/project/jsp which we don't want 
to put directly under the application's project directory.

Is there any other settings I need to follow to instruct the tomcat not to 
delete the softlink contents ?


Thanks & Regards,
Ningappa Koneri
mLifestyle | www.comviva.com


-Original Message-
From: Pid [mailto:p...@pidster.com]
Sent: Thursday, August 20, 2009 2:08 PM
To: users@tomcat.apache.org
Subject: Re: Question on allowLinking

On 20/08/2009 07:52, Nachiketh G Rao wrote:
> Hi,
> I had a query regarding Tomcat 6.X. We are developing a web application which 
> will be using soft-links for files on a the server. To do this we have set 
> allowLinking property to true in the "context.xml" configuration. We have 
> observed that, upon un-deploying the .war file by deleting it from the 
> webapps directory, all the contents under the soft link get deleted as well! 
> We do not want this to happen, how do we ensure that only the soft link 
> inside the .war file gets deleted.

What are you linking, exactly, that needs to be inside the web
application directory?

If it's just images and styles, (for example), you should make them
available via a URL external to the application itself.  You could use a
multi-level war file to make the URLs appear inside the app's URL space.

  myapp.war >  /myapp/
  myapp#scripts.war >  /myapp/scripts/

Tomcat *will* remove the contents of the deployed directory when you
undeploy it, this is intentional - otherwise how could you update an
application?

p



> Regards,
> Nachiketh
>
> 
> This e-mail and all material transmitted with it are for the use of the 
> intended recipient(s) ONLY and contains confidential and/or privileged 
> information. If you are not the intended recipient, please contact the sender 
> by reply e-mail and destroy all copies and the original message. Any 
> unauthorized review, use, disclosure, dissemination, forwarding, printing or 
> copying of this email or any action taken pursuant to the contents of the 
> present e-mail is strictly prohibited and is unlawful.
> The recipient acknowledges that Comviva Technologies Limited or its 
> management or directors, are unable to exercise control or ensure the 
> integrity over /of the contents of the information contained in e-mail. Any 
> views expressed herein are those of the individual sender only and no binding 
> nature of the contents shall be implied or assumed unless the sender does so 
> expressly with due authority of Comviva Technologies Limited. E-mail and any 
> contents transmitted with it are prone to viruses and related defects despite 
> all efforts to avoid such by Comviva Technologies Limited.
>


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


This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



RE: java heap space error

2009-09-01 Thread Ningappa Koneri
Thanks a lot it seems I also need to do the same.

Regards,
Ningappa Koneri
mLifestyle | www.comviva.com


-Original Message-
From: Suleyman Akpinar [mailto:suleyman.akpi...@hititcs.com]
Sent: Tuesday, September 01, 2009 1:49 PM
To: Özkan Dülger; Serdar Gür
Subject: Re: java heap space error

Many thanks Pid,

Your solution seems very reasonable. I will fulfill your advice.

Best Regards,
Suleyman

Pid wrote:
> On 01/09/2009 08:58, Suleyman Akpinar wrote:
>> Hi all,
>>
>> I have a java web application running on tomcat and I get java heap
>> space not enough error temporarily. Each time I am increasing the JMV
>> heap option by modifying the system variable CATALINA_OPTS. However,
>> this solves the problem temporarily. I get the same error when I work
>> for some more weeks on the development of the application.
>>
>> Can anybody help me solve the problem?
>
> You probably have a memory leak in your application.
>
> The first thing to check thoroughly, and I do mean thoroughly, is that
> you are properly closing all database connections and related objects.
> Don't assume that you have done so - check every location in the code
> carefully.
>
> Depending on which OS & JVM version you have, (you didn't say - so we
> have to guess), there are tools you can use to examine the
> application's state and memory consumption.
>
> Google "memory leak", "jmap" and "thread dump"
>
> p
>
>
>
>
>> Thanks in advance.
>> Suleyman
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


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


This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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



Enabling allowLinking in tomcat 6, deleting the soft link contents while undeploying!

2009-08-20 Thread Ningappa Koneri
Hi,

By Using  "allowLinking=true" in context.xml of tomcat 6, I am able to access 
soft links within the application project directory.
But the problem is when I undeploy the application by deleting only project.war 
file, tomcat is deleting all the contents inside the soft link along with that 
project directory, By this behavior it's causing the serious problem by 
deleting the valuable web content inside the soft link.

Please help me in this regard.

Regards,
Ningappa



This e-mail and all material transmitted with it are for the use of the 
intended recipient(s) ONLY and contains confidential and/or privileged 
information. If you are not the intended recipient, please contact the sender 
by reply e-mail and destroy all copies and the original message. Any 
unauthorized review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken pursuant to the contents of the 
present e-mail is strictly prohibited and is unlawful.
The recipient acknowledges that Comviva Technologies Limited or its management 
or directors, are unable to exercise control or ensure the integrity over /of 
the contents of the information contained in e-mail. Any views expressed herein 
are those of the individual sender only and no binding nature of the contents 
shall be implied or assumed unless the sender does so expressly with due 
authority of Comviva Technologies Limited. E-mail and any contents transmitted 
with it are prone to viruses and related defects despite all efforts to avoid 
such by Comviva Technologies Limited.

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