Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway)
Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #177997] Sun, 27 August 2006 22:07 Go to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Hi,

I am having problems with Eclipse since installing and using Tomcat.
On the order of once an hour it starts using all the available CPU,
effectively hanging the computer. It doesn't stop. It is happening on two
computers, one W2000 and one XP. It can be stopped by killing the Eclipse
javaw process if you can do that. It is hard to start the Task Manager when
this is happening. The purpose of this note is to see if others are having
similar problems.

It seems to be OK if I don't run Tomcat. It happens when doing
different things at different times. It is not repeatable. The first times
were when running the ConvertProj and AreaProj tutorials, while they were
running, but it has happened when just clicking a file to edit. It is
unstable. Having to kill the process or reboot the computer doesn't help,
of course.

My setup:

Eclipse 3.2 with WTP installed
Apache Tomcat v5.5, recently installed and not modified.
jdk1.5.0_05
Windows 2000 and XP

Eclipse 3.2 is a clean install but using preferences from 3.1.2. I have
used -clean. I have reinstalled Eclipse and Tomcat twice, now. I upgraded
to 3.2 because it is required for WTP. I also changed from j2sdk1.4.2_06 to
jdk1.5.0_05, both as a default JRE in preferences and as the specified JRE
on the Eclipse command-line. That is also required by WTP. This is a lot
of changes, but other things seem to work OK (after fixing things in my
projects that are different for 3.2 vs. 3.1).

I am experienced with Eclipse, but not with WTP. I do have both Web
Applications and Web Services that are working with Eclipse / Tomcat,
however, and I am not a rank beginner. The Web Apps are more stable than
the Web Services. Tomcat appears to be working correctly outside Eclipse.
I have also made a standalone web service client to an external source that
appears to be stable. (It doesn't need Tomcat.) It seems to be the Tomcat
/ Eclipse combination.

Any information, debugging tips, etc. would be appreciated. Or, if
others are having this problem, it could be submitted as a bug. It is
certainly a nuisance, and I have been ineffective at resolving it..

Thanks,

-Ken

It is really unstable. Any information would be useful.

-Ken
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178007 is a reply to message #177997] Mon, 28 August 2006 08:03 Go to previous messageGo to next message
Marko Topolnik is currently offline Marko TopolnikFriend
Messages: 42
Registered: July 2009
Member
"Kenneth Evans" <evans@aps.anl.gov> wrote in message
news:ect538$uui$1@utils.eclipse.org...
> Hi,
>
> I am having problems with Eclipse since installing and using Tomcat.
> On the order of once an hour it starts using all the available CPU,
> effectively hanging the computer. It doesn't stop. It is happening on
> two computers, one W2000 and one XP. It can be stopped by killing the
> Eclipse javaw process if you can do that. It is hard to start the Task
> Manager when this is happening. The purpose of this note is to see if
> others are having similar problems.

Yes, I for one can confirm your findings. I haven't yet established the
correlation with Tomcat running/not running, but it has definitely been
happening ever since I started using Tomcat from within WTP 1.5.0, although
I'd say it's slightly less frequent than in your case -- say two-three times
a day. BTW I'm using Tomcat 5.0.30.

Marko Topolnik
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178012 is a reply to message #177997] Mon, 28 August 2006 08:03 Go to previous messageGo to next message
Marko Topolnik is currently offline Marko TopolnikFriend
Messages: 42
Registered: July 2009
Member
"Kenneth Evans" <evans@aps.anl.gov> wrote in message
news:ect538$uui$1@utils.eclipse.org...
> Hi,
>
> I am having problems with Eclipse since installing and using Tomcat.
> On the order of once an hour it starts using all the available CPU,
> effectively hanging the computer. It doesn't stop. It is happening on
> two computers, one W2000 and one XP. It can be stopped by killing the
> Eclipse javaw process if you can do that. It is hard to start the Task
> Manager when this is happening. The purpose of this note is to see if
> others are having similar problems.

Yes, I for one can confirm your findings. I haven't yet established the
correlation with Tomcat running/not running, but it has definitely been
happening ever since I started using Tomcat from within WTP 1.5.0, although
I'd say it's slightly less frequent than in your case -- say two-three times
a day. BTW I'm using Tomcat 5.0.30.

Marko Topolnik
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178073 is a reply to message #177997] Mon, 28 August 2006 19:11 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
What would be the most helpful would be to try to capture a "thread
dump/stack trace" as described in this document:

http://wiki.eclipse.org/index.php/How_to_report_a_deadlock

To modify the "buffering size" in Windows, right-click on the console
window title and select Properties. Change the Width and Height of the
Screen Buffer Size settings on the Layout tab.

Cheers,
Larry

Kenneth Evans wrote:
> Hi,
>
> I am having problems with Eclipse since installing and using Tomcat.
> On the order of once an hour it starts using all the available CPU,
> effectively hanging the computer. It doesn't stop. It is happening on two
> computers, one W2000 and one XP. It can be stopped by killing the Eclipse
> javaw process if you can do that. It is hard to start the Task Manager when
> this is happening. The purpose of this note is to see if others are having
> similar problems.
>
> It seems to be OK if I don't run Tomcat. It happens when doing
> different things at different times. It is not repeatable. The first times
> were when running the ConvertProj and AreaProj tutorials, while they were
> running, but it has happened when just clicking a file to edit. It is
> unstable. Having to kill the process or reboot the computer doesn't help,
> of course.
>
> My setup:
>
> Eclipse 3.2 with WTP installed
> Apache Tomcat v5.5, recently installed and not modified.
> jdk1.5.0_05
> Windows 2000 and XP
>
> Eclipse 3.2 is a clean install but using preferences from 3.1.2. I have
> used -clean. I have reinstalled Eclipse and Tomcat twice, now. I upgraded
> to 3.2 because it is required for WTP. I also changed from j2sdk1.4.2_06 to
> jdk1.5.0_05, both as a default JRE in preferences and as the specified JRE
> on the Eclipse command-line. That is also required by WTP. This is a lot
> of changes, but other things seem to work OK (after fixing things in my
> projects that are different for 3.2 vs. 3.1).
>
> I am experienced with Eclipse, but not with WTP. I do have both Web
> Applications and Web Services that are working with Eclipse / Tomcat,
> however, and I am not a rank beginner. The Web Apps are more stable than
> the Web Services. Tomcat appears to be working correctly outside Eclipse.
> I have also made a standalone web service client to an external source that
> appears to be stable. (It doesn't need Tomcat.) It seems to be the Tomcat
> / Eclipse combination.
>
> Any information, debugging tips, etc. would be appreciated. Or, if
> others are having this problem, it could be submitted as a bug. It is
> certainly a nuisance, and I have been ineffective at resolving it..
>
> Thanks,
>
> -Ken
>
> It is really unstable. Any information would be useful.
>
> -Ken
>
>
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178135 is a reply to message #178073] Tue, 29 August 2006 13:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tobias.domain.hidden.com

Hi,

We're also experiencing this problem at my company. I haven't been able
to figure out if its WTP or some other plugin that causes this. Our
setup is basically the same as yours, Tomcat 5.5, Eclipse 3.2, Windows
XP but with a more recent JDK.

I've added -consolelog to my startup today and will try to get my
colleagues to do the same.

Could the first person to open a bug on this please tell us about it
here so we can coordinate or efforts on the same bugzilla bug.

// Tobias Mattsson

Larry Isaacs wrote:
> What would be the most helpful would be to try to capture a "thread
> dump/stack trace" as described in this document:
>
> http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
>
> To modify the "buffering size" in Windows, right-click on the console
> window title and select Properties. Change the Width and Height of the
> Screen Buffer Size settings on the Layout tab.
>
> Cheers,
> Larry
>
> Kenneth Evans wrote:
>> Hi,
>>
>> I am having problems with Eclipse since installing and using
>> Tomcat. On the order of once an hour it starts using all the available
>> CPU, effectively hanging the computer. It doesn't stop. It is
>> happening on two computers, one W2000 and one XP. It can be stopped
>> by killing the Eclipse javaw process if you can do that. It is hard
>> to start the Task Manager when this is happening. The purpose of this
>> note is to see if others are having similar problems.
>>
>> It seems to be OK if I don't run Tomcat. It happens when doing
>> different things at different times. It is not repeatable. The first
>> times were when running the ConvertProj and AreaProj tutorials, while
>> they were running, but it has happened when just clicking a file to
>> edit. It is unstable. Having to kill the process or reboot the
>> computer doesn't help, of course.
>>
>> My setup:
>>
>> Eclipse 3.2 with WTP installed
>> Apache Tomcat v5.5, recently installed and not modified.
>> jdk1.5.0_05
>> Windows 2000 and XP
>>
>> Eclipse 3.2 is a clean install but using preferences from 3.1.2.
>> I have used -clean. I have reinstalled Eclipse and Tomcat twice,
>> now. I upgraded to 3.2 because it is required for WTP. I also
>> changed from j2sdk1.4.2_06 to jdk1.5.0_05, both as a default JRE in
>> preferences and as the specified JRE on the Eclipse command-line.
>> That is also required by WTP. This is a lot of changes, but other
>> things seem to work OK (after fixing things in my projects that are
>> different for 3.2 vs. 3.1).
>>
>> I am experienced with Eclipse, but not with WTP. I do have both
>> Web Applications and Web Services that are working with Eclipse /
>> Tomcat, however, and I am not a rank beginner. The Web Apps are more
>> stable than the Web Services. Tomcat appears to be working correctly
>> outside Eclipse. I have also made a standalone web service client to
>> an external source that appears to be stable. (It doesn't need
>> Tomcat.) It seems to be the Tomcat / Eclipse combination.
>>
>> Any information, debugging tips, etc. would be appreciated. Or,
>> if others are having this problem, it could be submitted as a bug. It
>> is certainly a nuisance, and I have been ineffective at resolving it..
>>
>> Thanks,
>>
>> -Ken
>>
>> It is really unstable. Any information would be useful.
>>
>> -Ken
>>
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178319 is a reply to message #177997] Wed, 30 August 2006 22:33 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Since others are having the same problem I submitted it as a bug:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=155744

I will try java.exe or -consolelog, but I am going to be out of town and
won't be using Eclipse for a while. Thanks for the responses.

-Ken
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178330 is a reply to message #177997] Thu, 31 August 2006 02:28 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 19
Registered: July 2009
Junior Member
Kenneth Evans wrote:

> Hi,

> I am having problems with Eclipse since installing and using Tomcat.
> On the order of once an hour it starts using all the available CPU,
> effectively hanging the computer. It doesn't stop. It is happening on two
> computers, one W2000 and one XP. It can be stopped by killing the Eclipse
> javaw process if you can do that. It is hard to start the Task Manager when
> this is happening. The purpose of this note is to see if others are having
> similar problems.


I have already been down that road and found an effective solution.

Please consult the following URL:

http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 420.html
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178361 is a reply to message #178330] Thu, 31 August 2006 12:47 Go to previous messageGo to next message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
It would be interesting to see if Ken's problem is one of the known 100%
CPU problems or a new one, since Tomcat is perceived to be involved. It
should be possible for Ken to encounter the existing problems even when
Tomcat isn't used, which he doesn't report happening.

If it's the MaxPermSize problem [1], which can cause 100% CPU in the
right circumstances, hopefully OutOfMemoryErrors indicating this will
appear in the log. If not, then a thread dump might reveal if the
problem is a new one, or just a new trigger for a known one.

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=92250

Pat Podenski wrote:
> Kenneth Evans wrote:
>
>> Hi,
>
>> I am having problems with Eclipse since installing and using
>> Tomcat. On the order of once an hour it starts using all the available
>> CPU, effectively hanging the computer. It doesn't stop. It is
>> happening on two computers, one W2000 and one XP. It can be stopped
>> by killing the Eclipse javaw process if you can do that. It is hard
>> to start the Task Manager when this is happening. The purpose of this
>> note is to see if others are having similar problems.
>
>
> I have already been down that road and found an effective solution.
>
> Please consult the following URL:
>
> http://dev.eclipse.org/newslists/news.eclipse.webtools/msg11 420.html
>
>
>
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178368 is a reply to message #178361] Thu, 31 August 2006 16:23 Go to previous messageGo to next message
Kenneth Evans, Jr. is currently offline Kenneth Evans, Jr.Friend
Messages: 77
Registered: July 2009
Member
Hi,

I had already set the memory up to 512M, but not the other things
mentioned. That did not fix the problem. One of my computers only has 512M
RAM. That tended to cause it to use virtual memory (hard drive runs all the
time) and slow down. I also agree that it should tell you if there is a
memory problem, not just run away.

-Ken


"Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
news:ed6loo$88b$1@utils.eclipse.org...
> It would be interesting to see if Ken's problem is one of the known 100%
> CPU problems or a new one, since Tomcat is perceived to be involved. It
> should be possible for Ken to encounter the existing problems even when
> Tomcat isn't used, which he doesn't report happening.
>
> If it's the MaxPermSize problem [1], which can cause 100% CPU in the
> right circumstances, hopefully OutOfMemoryErrors indicating this will
> appear in the log. If not, then a thread dump might reveal if the
> problem is a new one, or just a new trigger for a known one.
>
> Cheers,
> Larry
>
> >
Re: Eclipse3.2 is Unstable with Tomcat 5.5 (For Me, Anyway) [message #178392 is a reply to message #178368] Thu, 31 August 2006 17:14 Go to previous message
Larry Isaacs is currently offline Larry IsaacsFriend
Messages: 1310
Registered: July 2009
Senior Member
I believe the key setting from Pat's reply is the
"-XX:MaxPermSize=128m". Eclipse with WTP stands a good chance of having
trouble with Sun's default of 64m [1]. A max heap of say 256m, the
Eclipse default, is much less likely to be a problem.

I believe under the right circumstances, the JVM can end up spending
excessive amount of its time doing error handling and GC if MaxPermSize
isn't big enough. I've seen starting Tomcat lead to the MaxPermSize
OutOfMemoryError, but it didn't result in 100% CPU. You could give
"-XX:MaxPermSize=128m" a try and see if you no longer encounter the 100%
CPU. If you try this and become confident that this has fixed your
problem, update your Bug #155744 to be a duplicate of Bug #129490, or at
least add a comment to that effect.

Cheers,
Larry

[1] https://bugs.eclipse.org/bugs/show_bug.cgi?id=129490

Kenneth Evans wrote:
> Hi,
>
> I had already set the memory up to 512M, but not the other things
> mentioned. That did not fix the problem. One of my computers only has 512M
> RAM. That tended to cause it to use virtual memory (hard drive runs all the
> time) and slow down. I also agree that it should tell you if there is a
> memory problem, not just run away.
>
> -Ken
>
>
> "Larry Isaacs" <Larry.Isaacs@sas.com> wrote in message
> news:ed6loo$88b$1@utils.eclipse.org...
>> It would be interesting to see if Ken's problem is one of the known 100%
>> CPU problems or a new one, since Tomcat is perceived to be involved. It
>> should be possible for Ken to encounter the existing problems even when
>> Tomcat isn't used, which he doesn't report happening.
>>
>> If it's the MaxPermSize problem [1], which can cause 100% CPU in the
>> right circumstances, hopefully OutOfMemoryErrors indicating this will
>> appear in the log. If not, then a thread dump might reveal if the
>> problem is a new one, or just a new trigger for a known one.
>>
>> Cheers,
>> Larry
>>
>
>
Previous Topic:CHKj3000E: WAR Validation Failed
Next Topic:Problem in adding a menu item to File Menu
Goto Forum:
  


Current Time: Sat Nov 22 23:52:24 GMT 2014

Powered by FUDForum. Page generated in 0.01864 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software