Re: Tomcat access is very slow

2010-02-03 Thread youngm

I've moved my question to the thread: "Tomcat 6.0.24 Google Chrome".


Peter Crowther wrote:
> 
> Mike, you'll probably get a few comments about thread hijacking - might be
> worth starting a new thread.
> 
> Is there any way you could get a Wireshark or similar trace?  It'd be very
> interesting to know what bytes the browser sent when in the request, for
> example, and whether the browser half-closed the socket.
> 
> Also, which Connector are you using?  What happens if you use a different
> one?
> 
> Cheers,
> 
> - Peter
> 
> On 3 February 2010 17:37, youngm  wrote:
> 
>>
>> I am having a similar problem though I only see this problem in Google
>> Chrome.  I request my home page in chrome and it takes 100 sec to load
>> the
>> page.  If I load the page in Firefox it loads excellent.  I downgrade to
>> tomcat 6.0.20 and everything works great in chrome.
>>
>> This is hitting a server using "localhost" so it's not a host
>> resolve/timeout problem.
>>
>> I hooked a profiler up to my app running tomcat 6.0.24 and hit the home
>> page.  All of the time is taken in the following trace.
>>
>> org.apache.coyote.http11.InternalInputBuffer.parseRequestLine()
>> org.apache.coyote.http11.InternalInputBuffer.fill()
>> java.net.SocketInputStream.read(byte[], int, int)
>> [Wall Time]  java.net.SocketInputStream.socketRead0(FileDescriptor,
>> byte[],
>> int, int, int)
>>
>> Tomcat 6.0.24 is spending 100 sec 99% of the request in the socketRead0
>> call
>> above.
>>
>> Again I don't see this problem with Tomcat 6.0.20 in any browser.  In
>> Tomcat
>> 6.0.24 I have tested Firefox 3.5, IE 8 and Chrome 4.0.249.78.  I only see
>> this problem in Chrome.
>>
>> Any ideas?
>>
>> Mike
>>
>>
>>
>>
>> Yves Yu wrote:
>> >
>> > Dears,
>> >
>> >
>> >
>> > I’m not a very new to Tomcat \with a few projects experience.
>> >
>> > I got a new note book, everything is very fast except tomcat access.
>> >
>> >
>> >
>> > I run a new project in my new tomcat(5.5.28 with no other project in
>> > webapp), I need about 2-5 minutes to open a page.
>> >
>> > Same environment on my colleague, it only need 10 seconds at most.
>> >
>> >
>> >
>> > Some colleague said they met this situation before, but when they
>> > reinstall
>> > the OS, it works well,
>> >
>> > Do I have any other ways except reinstall OS?
>> >
>> >
>> >
>> > Thank you in advance, following is my environment configuation.
>> >
>> >
>> >
>> > HP 4311s with 2G Memory
>> >
>> > Tomcat 5.5.28, new and clear.
>> >
>> > No virus.
>> >
>> >
>> >
>> >
>> >
>> > Best Regards,
>> >
>> > Yves
>> >
>> >
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Tomcat-access-is-very-slow-tp27179689p27440294.html
>> Sent from the Tomcat - User mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-access-is-very-slow-tp27179689p27440940.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



Re: Tomcat access is very slow

2010-02-03 Thread Peter Crowther
Mike, you'll probably get a few comments about thread hijacking - might be
worth starting a new thread.

Is there any way you could get a Wireshark or similar trace?  It'd be very
interesting to know what bytes the browser sent when in the request, for
example, and whether the browser half-closed the socket.

Also, which Connector are you using?  What happens if you use a different
one?

Cheers,

- Peter

On 3 February 2010 17:37, youngm  wrote:

>
> I am having a similar problem though I only see this problem in Google
> Chrome.  I request my home page in chrome and it takes 100 sec to load the
> page.  If I load the page in Firefox it loads excellent.  I downgrade to
> tomcat 6.0.20 and everything works great in chrome.
>
> This is hitting a server using "localhost" so it's not a host
> resolve/timeout problem.
>
> I hooked a profiler up to my app running tomcat 6.0.24 and hit the home
> page.  All of the time is taken in the following trace.
>
> org.apache.coyote.http11.InternalInputBuffer.parseRequestLine()
> org.apache.coyote.http11.InternalInputBuffer.fill()
> java.net.SocketInputStream.read(byte[], int, int)
> [Wall Time]  java.net.SocketInputStream.socketRead0(FileDescriptor, byte[],
> int, int, int)
>
> Tomcat 6.0.24 is spending 100 sec 99% of the request in the socketRead0
> call
> above.
>
> Again I don't see this problem with Tomcat 6.0.20 in any browser.  In
> Tomcat
> 6.0.24 I have tested Firefox 3.5, IE 8 and Chrome 4.0.249.78.  I only see
> this problem in Chrome.
>
> Any ideas?
>
> Mike
>
>
>
>
> Yves Yu wrote:
> >
> > Dears,
> >
> >
> >
> > I’m not a very new to Tomcat \with a few projects experience.
> >
> > I got a new note book, everything is very fast except tomcat access.
> >
> >
> >
> > I run a new project in my new tomcat(5.5.28 with no other project in
> > webapp), I need about 2-5 minutes to open a page.
> >
> > Same environment on my colleague, it only need 10 seconds at most.
> >
> >
> >
> > Some colleague said they met this situation before, but when they
> > reinstall
> > the OS, it works well,
> >
> > Do I have any other ways except reinstall OS?
> >
> >
> >
> > Thank you in advance, following is my environment configuation.
> >
> >
> >
> > HP 4311s with 2G Memory
> >
> > Tomcat 5.5.28, new and clear.
> >
> > No virus.
> >
> >
> >
> >
> >
> > Best Regards,
> >
> > Yves
> >
> >
>
> --
> View this message in context:
> http://old.nabble.com/Tomcat-access-is-very-slow-tp27179689p27440294.html
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat access is very slow

2010-02-03 Thread youngm

I am having a similar problem though I only see this problem in Google
Chrome.  I request my home page in chrome and it takes 100 sec to load the
page.  If I load the page in Firefox it loads excellent.  I downgrade to
tomcat 6.0.20 and everything works great in chrome.

This is hitting a server using "localhost" so it's not a host
resolve/timeout problem.

I hooked a profiler up to my app running tomcat 6.0.24 and hit the home
page.  All of the time is taken in the following trace.

org.apache.coyote.http11.InternalInputBuffer.parseRequestLine()
org.apache.coyote.http11.InternalInputBuffer.fill()
java.net.SocketInputStream.read(byte[], int, int)
[Wall Time]  java.net.SocketInputStream.socketRead0(FileDescriptor, byte[],
int, int, int)

Tomcat 6.0.24 is spending 100 sec 99% of the request in the socketRead0 call
above.

Again I don't see this problem with Tomcat 6.0.20 in any browser.  In Tomcat
6.0.24 I have tested Firefox 3.5, IE 8 and Chrome 4.0.249.78.  I only see
this problem in Chrome.

Any ideas?

Mike




Yves Yu wrote:
> 
> Dears,
> 
> 
> 
> I’m not a very new to Tomcat \with a few projects experience.
> 
> I got a new note book, everything is very fast except tomcat access.
> 
> 
> 
> I run a new project in my new tomcat(5.5.28 with no other project in
> webapp), I need about 2-5 minutes to open a page.
> 
> Same environment on my colleague, it only need 10 seconds at most.
> 
> 
> 
> Some colleague said they met this situation before, but when they
> reinstall
> the OS, it works well,
> 
> Do I have any other ways except reinstall OS?
> 
> 
> 
> Thank you in advance, following is my environment configuation.
> 
> 
> 
> HP 4311s with 2G Memory
> 
> Tomcat 5.5.28, new and clear.
> 
> No virus.
> 
> 
> 
> 
> 
> Best Regards,
> 
> Yves
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Tomcat-access-is-very-slow-tp27179689p27440294.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


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



RE: Tomcat access is very slow

2010-01-26 Thread Caldarale, Charles R
> From: Yu Chao [mailto:yves0...@gmail.com]
> Subject: Re: Tomcat access is very slow
> 
> it takes 5 minutes to open a homepage, but in my colleague's 
> computer, only 10-20 seconds.

Might be network timeouts, waiting for something like DNS resolution (as 
someone else already suggested, I believe).  Compare the 
C:\WINDOWS\system32\drivers\etc\hosts files on the two computers, and perhaps 
run Wireshark on yours to see if there are network requests being made that are 
not being responded to.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


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



Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
using my colleague's computer, means using his tomcat to run the project,
not related with brower.

2010/1/27 Yu Chao 

> thank you.
>
> 1. XP
> 2. 1.5.0
> 3. I have a tomcat project, which is running fast on my colleague's
> computer, but very slow on mine.
> 4. examples is very fast.
> 5. no database, but webservice.
> 6. IE, chrome, firefox, i tried all of them, same result.
>
> I even copied my colleague's tomcat to my computer, but doesn't work, it's
> very slow when I accessing http://localhost:8080/projectname, it takes 5
> minutes to open a homepage, but in my colleague's computer, only 10-20
> seconds.
>
> 2010/1/27 Konstantin Kolinko 
>
> 2010/1/26 Yu Chao :
>> > sorry for my later response because I reinstalled my computer... the
>> > situation is still slow, I got mad...
>>
>> 1. Your operating system = ?
>> 2. Your Java runtime vendor and its version = ?
>> 3. What are you trying to do, step by step. At what step do you
>> observe the delays?
>> 4. Is it only your application, that opens slowly? How about Tomcat
>> examples? What about other, external, web sites?
>> 5. Does your application have connections to a Database?
>> 6. What web browser are you using?
>>
>>
>> Best regards,
>> Konstantin Kolinko
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>>
>


Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
thank you.

1. XP
2. 1.5.0
3. I have a tomcat project, which is running fast on my colleague's
computer, but very slow on mine.
4. examples is very fast.
5. no database, but webservice.
6. IE, chrome, firefox, i tried all of them, same result.

I even copied my colleague's tomcat to my computer, but doesn't work, it's
very slow when I accessing http://localhost:8080/projectname, it takes 5
minutes to open a homepage, but in my colleague's computer, only 10-20
seconds.

2010/1/27 Konstantin Kolinko 

> 2010/1/26 Yu Chao :
> > sorry for my later response because I reinstalled my computer... the
> > situation is still slow, I got mad...
>
> 1. Your operating system = ?
> 2. Your Java runtime vendor and its version = ?
> 3. What are you trying to do, step by step. At what step do you
> observe the delays?
> 4. Is it only your application, that opens slowly? How about Tomcat
> examples? What about other, external, web sites?
> 5. Does your application have connections to a Database?
> 6. What web browser are you using?
>
>
> Best regards,
> Konstantin Kolinko
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat access is very slow

2010-01-26 Thread Konstantin Kolinko
2010/1/26 Yu Chao :
> sorry for my later response because I reinstalled my computer... the
> situation is still slow, I got mad...

1. Your operating system = ?
2. Your Java runtime vendor and its version = ?
3. What are you trying to do, step by step. At what step do you
observe the delays?
4. Is it only your application, that opens slowly? How about Tomcat
examples? What about other, external, web sites?
5. Does your application have connections to a Database?
6. What web browser are you using?


Best regards,
Konstantin Kolinko

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



Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
sorry for my later response because I reinstalled my computer... the
situation is still slow, I got mad...

2010/1/26 Yu Chao 

> what ever I use localhost:8080, or direct 192.168.0.127:8080
>
> 2010/1/16 Ziggy 
>
> Is it slow when you try to access it directly using the IP address?
>>
>> On Fri, Jan 15, 2010 at 7:54 PM, Christopher Schultz <
>> ch...@christopherschultz.net> wrote:
>>
>> > -BEGIN PGP SIGNED MESSAGE-
>> > Hash: SHA1
>> >
>> > Yu,
>> >
>> > On 1/15/2010 11:28 AM, Yu Chao wrote:
>> > > I’m not a very new to Tomcat \with a few projects experience.
>> > >
>> > > I got a new note book, everything is very fast except tomcat access.
>> >
>> > Where is Tomcat running? On your notebook, or on another server?
>> >
>> > > I run a new project in my new tomcat(5.5.28 with no other project in
>> > > webapp), I need about 2-5 minutes to open a page.
>> >
>> > Perhaps a DNS lookup is stalling?
>> >
>> > Details about your setup would be very helpful.
>> >
>> > - -chris
>> > -BEGIN PGP SIGNATURE-
>> > Version: GnuPG v1.4.10 (MingW32)
>> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>> >
>> > iEYEARECAAYFAktQx+EACgkQ9CaO5/Lv0PCh9wCgpahPcEWTdmJrFGQME+iwLfb3
>> > YysAniZoma4EdKR/TkIc3+4EGNj9+LCd
>> > =2Ntb
>> > -END PGP SIGNATURE-
>> >
>> > -
>> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> > For additional commands, e-mail: users-h...@tomcat.apache.org
>> >
>> >
>>
>
>


Re: Tomcat access is very slow

2010-01-26 Thread Yu Chao
what ever I use localhost:8080, or direct 192.168.0.127:8080

2010/1/16 Ziggy 

> Is it slow when you try to access it directly using the IP address?
>
> On Fri, Jan 15, 2010 at 7:54 PM, Christopher Schultz <
> ch...@christopherschultz.net> wrote:
>
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Yu,
> >
> > On 1/15/2010 11:28 AM, Yu Chao wrote:
> > > I’m not a very new to Tomcat \with a few projects experience.
> > >
> > > I got a new note book, everything is very fast except tomcat access.
> >
> > Where is Tomcat running? On your notebook, or on another server?
> >
> > > I run a new project in my new tomcat(5.5.28 with no other project in
> > > webapp), I need about 2-5 minutes to open a page.
> >
> > Perhaps a DNS lookup is stalling?
> >
> > Details about your setup would be very helpful.
> >
> > - -chris
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.10 (MingW32)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
> >
> > iEYEARECAAYFAktQx+EACgkQ9CaO5/Lv0PCh9wCgpahPcEWTdmJrFGQME+iwLfb3
> > YysAniZoma4EdKR/TkIc3+4EGNj9+LCd
> > =2Ntb
> > -END PGP SIGNATURE-
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> > For additional commands, e-mail: users-h...@tomcat.apache.org
> >
> >
>


Re: Tomcat access is very slow

2010-01-15 Thread Ziggy
Is it slow when you try to access it directly using the IP address?

On Fri, Jan 15, 2010 at 7:54 PM, Christopher Schultz <
ch...@christopherschultz.net> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Yu,
>
> On 1/15/2010 11:28 AM, Yu Chao wrote:
> > I’m not a very new to Tomcat \with a few projects experience.
> >
> > I got a new note book, everything is very fast except tomcat access.
>
> Where is Tomcat running? On your notebook, or on another server?
>
> > I run a new project in my new tomcat(5.5.28 with no other project in
> > webapp), I need about 2-5 minutes to open a page.
>
> Perhaps a DNS lookup is stalling?
>
> Details about your setup would be very helpful.
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.10 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAktQx+EACgkQ9CaO5/Lv0PCh9wCgpahPcEWTdmJrFGQME+iwLfb3
> YysAniZoma4EdKR/TkIc3+4EGNj9+LCd
> =2Ntb
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


Re: Tomcat access is very slow

2010-01-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Yu,

On 1/15/2010 11:28 AM, Yu Chao wrote:
> I’m not a very new to Tomcat \with a few projects experience.
> 
> I got a new note book, everything is very fast except tomcat access.

Where is Tomcat running? On your notebook, or on another server?

> I run a new project in my new tomcat(5.5.28 with no other project in
> webapp), I need about 2-5 minutes to open a page.

Perhaps a DNS lookup is stalling?

Details about your setup would be very helpful.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAktQx+EACgkQ9CaO5/Lv0PCh9wCgpahPcEWTdmJrFGQME+iwLfb3
YysAniZoma4EdKR/TkIc3+4EGNj9+LCd
=2Ntb
-END PGP SIGNATURE-

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



Re: Tomcat access is very slow

2010-01-15 Thread Yu Chao
some complementary:

1. Tomcat startup is very fast, in 5 seconds, but slow in access pages.
2. I changed 5.5.28 to 5.5.23, both very slow.
3.

2010/1/16 Yu Chao 

> Dears,
>
>
>
> I’m not a very new to Tomcat \with a few projects experience.
>
> I got a new note book, everything is very fast except tomcat access.
>
>
>
> I run a new project in my new tomcat(5.5.28 with no other project in
> webapp), I need about 2-5 minutes to open a page.
>
> Same environment on my colleague, it only need 10 seconds at most.
>
>
>
> Some colleague said they met this situation before, but when they reinstall
> the OS, it works well,
>
> Do I have any other ways except reinstall OS?
>
>
>
> Thank you in advance, following is my environment configuation.
>
>
>
> HP 4311s with 2G Memory
>
> Tomcat 5.5.28, new and clear.
>
> No virus.
>
>
>
>
>
> Best Regards,
>
> Yves
>
>
>


Tomcat access is very slow

2010-01-15 Thread Yu Chao
Dears,



I’m not a very new to Tomcat \with a few projects experience.

I got a new note book, everything is very fast except tomcat access.



I run a new project in my new tomcat(5.5.28 with no other project in
webapp), I need about 2-5 minutes to open a page.

Same environment on my colleague, it only need 10 seconds at most.



Some colleague said they met this situation before, but when they reinstall
the OS, it works well,

Do I have any other ways except reinstall OS?



Thank you in advance, following is my environment configuation.



HP 4311s with 2G Memory

Tomcat 5.5.28, new and clear.

No virus.





Best Regards,

Yves