> From: Edward Dowgiallo [mailto:[EMAIL PROTECTED]
> Subject: Re: How can Servlet detect lost of connection to client?
>
> How about putting in a lifecycle listener for Session destruction?
A Session typically persists across the coming and going of multiple HTTP
connections for a client, so that
"Ming Deng" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Even though servlet can't detect that kind of events, will Tomcat be aware
> of such events in its internal process?
>
Generally, no Tomcat won't be aware of such an event until it attempts to
write on the Socket. It doe
How about putting in a lifecycle listener for Session destruction?
Ed
On Sat, Sep 27, 2008 at 6:14 PM, Martin Gainty <[EMAIL PROTECTED]> wrote:
>
> agreed.. I would definitely try that solution first
>
> also you may want to use a different connector (such as NIOConnector..)
> that supports Even
agreed.. I would definitely try that solution first
also you may want to use a different connector (such as NIOConnector..) that
supports Events
if you keep in mind your client's browser will not display anything until the
entire request is complete. so write a client application for your
come
Even though servlet can't detect that kind of events, will Tomcat be aware
of such events in its internal process?
On Sat, Sep 27, 2008 at 5:21 PM, Mikolaj Rydzewski <[EMAIL PROTECTED]> wrote:
> Ming Deng wrote:
>
>> If a client HTTP request takes some time to process on the servlet side,
>> it
Ming Deng wrote:
If a client HTTP request takes some time to process on the servlet side, it
is possible that the Tomcat can lose connection to the client in the middle
of this processing time, due to various reasons, for example the client
quit. How can servlet detect such event so it can termin
If a client HTTP request takes some time to process on the servlet side, it
is possible that the Tomcat can lose connection to the client in the middle
of this processing time, due to various reasons, for example the client
quit. How can servlet detect such event so it can terminate the server side
G Kontos wrote:
> The server has a total of 432 MB of memory, 90MB initial
> Heap size for tomcat, 180MB max heap size.
In this day and age, that's bordering on tiny. Besides the likely I/O problem,
you may be doing a lot of garbage collections. You certainly want -Xms the
same as -Xmx with su
> I have not had first-hand experience with other virtualization products
> except for VMWare's workstation and player (host/guest setup) so I can't
> tell whether this is a problem specifically with Virtuozzo or would be a
> problem with any virtualized environment.
>
VMWare products are solid
Sure sounds like it. Exactly what your are lacking may be listed in the
last column of the following command
cat /proc/user_beancounters
You may also want to ask your provider "Say how many other accounts are
sharing the server with me?"
G Kontos wrote:
Hi Gabe, Thanks for the reply. The app
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Greg,
G Kontos wrote:
> The application does live on a VPS - Virtuozzo VPS.
My mail server runs on a VPS and it's /horrible/. I'm very unhappy. It
appears to lock up all the time and cause all kinds of problems when
using IMAP. I'm not sure about how
Hi Gabe, Thanks for the reply. The application does live on a VPS -
Virtuozzo VPS. The server has a total of 432 MB of memory, 90MB initial
Heap size for tomcat, 180MB max heap size. The numbers for actual CPU speed
or my piece of that speed aren't published, but my current usage of the CPU
has
Hi list,
porting my application to tomcat 6.0.18 I'm now fighting with this bug:
https://issues.apache.org/bugzilla/show_bug.cgi?id=45511 ( EL "empty"
keyword does not work )
since in my application I have a lot of something like ${empty('')}.
I have seen that the bug is already closed, so I w
- Original Message -
From: "Dave" <[EMAIL PROTECTED]>
To: "Tomcat Users List"
Sent: Saturday, September 27, 2008 3:38 AM
Subject: Re: image download
InputStream is = new FileInputStream("/apphome/pictures/image.jpg");
OutputStream os = response.getOutputStream();
byte[] buffer = new
14 matches
Mail list logo