I do a lot of downloads of large files (several 10's of MB). Firefox
seems to limit its transfer rate to about 100 kbps (that is, kilobits
per sec). If you are using linux, try doing a 'wget' on the file instead
of using a browser.
300,000 bytes is 2,400,000 bits (approx) so to take 2 minutes = 120 secs
implies a bit rate of 10,000 bits per sec. I don't for a moment believe
that is a limitation of tomcat (I regularly stream continuously 40
MBitsPerSec with hardly any CPU)
Here are various random thoughts:
1. Some kind of timeout (maybe DNS?)
2. Swapping (you say CPU = 100% what about memory usage?)
3. Some kind of lock contention.
HTH
Bruno Matos wrote:
Hello,
Tank you every one.
I connect to localhost and my CPU stays in 100% all the time.
Open directly the xml file take no time at all.
Alan Chaney wrote:
One a similar vein, exactly how do you connect firefox to the server?
Directly, or via some kind of network connection. If its a network,
what's the bandwidth?
Alan Chaney
Christopher Schultz wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Bruno,
Bruno Matos wrote:
| I'm getting documents from lucene and creating a string with all the
| results with string buffer. The string creation takes 2 seconds and
the
|
| outResponse.print(out.toString());
|
| takes 1 second. Closing the writer take no time at all, although I
have
| to wait 2 minutes until the result shows in firefox. The same happens
| with solr, that should make something like that. The xml file, only
has
| 300KB. Why I need to wait for so long?
Have you tried saving the 300kb XML file and then loading it off the
disk just to see how long the browser takes to render it? Perhaps it's
all on the client side...
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgPX7YACgkQ9CaO5/Lv0PCBgACgjQG0lVaGNCWWNSXcmSXXxXUF
AS8AoLSBsz6vGtH6zfALFvI5W3GGgtwR
=2WzS
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
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]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]