Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » PermGen space
PermGen space [message #209991] Sat, 08 March 2008 12:09 Go to next message
Eclipse UserFriend
Originally posted by: salamlinux.free.fr

I had eclipse packaged with my FC8 which I deleted it because of some
update issues regarding RCP patch and I as recommended to have a fresh new
install.
I downloaded the latest version of eclipse, done all necessary updates
through update manager DTP, webtools, gem, EMF.....and managed to run
servlet and jsp pages developed in the old version.
Whenever I try to rerun an example for a 2nd time, I get eclipse hanged
with error messages mainly the following :
Exception in thread "Thread-16" java.lang.OutOfMemoryError: PermGen space
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
.....................
......................
.......................
.....................
java.lang.OutOfMemoryError: PermGen space
Exception in thread "RMI RenewClean-[192.168.1.11:51243]"
java.lang.OutOfMemoryError: PermGen space
java.lang.OutOfMemoryError: PermGen space
Error while logging event loop exception:
java.lang.OutOfMemoryError: PermGen space

I did some googling and discovered that it is something related to
garabage collecting but didn't find any article on a remedy.
I am not doing complex things, just trying to follow a small tutorial for
doing one servlet, one wsdl nothing big deal.

My question, is there any fix or patch for this problem? what is annoying
me is that during doing an operation for example transforming a class into
web service, eclipse get stuck on a dialog page called "web service java
bean identity", clicking on "next" continues to genertae variuos errors,
clicking on cancel it doesnt close anything, I should kill eclipse from
within a terminal session.
Thanks for your help
Re: PermGen space [message #210002 is a reply to message #209991] Sat, 08 March 2008 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------080008030505020003030005
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

This permgen issues has come up hundreds of times on various
newsgroups. Just google for "eclipse permgen space error" and you'll
find plenty of help. Here's one:

http://alblue.blogspot.com/2007/10/headless-eclipse-on-linux -and.html

To summarize, you'll need a larger, e.g., |-XX:MaxPermSize=256m|, which
you can specify in the eclipse.ini or directly on the command line when
you run.


eliassal wrote:
> I had eclipse packaged with my FC8 which I deleted it because of some
> update issues regarding RCP patch and I as recommended to have a fresh
> new install.
> I downloaded the latest version of eclipse, done all necessary updates
> through update manager DTP, webtools, gem, EMF.....and managed to run
> servlet and jsp pages developed in the old version.
> Whenever I try to rerun an example for a 2nd time, I get eclipse
> hanged with error messages mainly the following :
> Exception in thread "Thread-16" java.lang.OutOfMemoryError: PermGen space
> at java.lang.ClassLoader.defineClass1(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> ....................
> .....................
> ......................
> ....................
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "RMI RenewClean-[192.168.1.11:51243]"
> java.lang.OutOfMemoryError: PermGen space
> java.lang.OutOfMemoryError: PermGen space
> Error while logging event loop exception:
> java.lang.OutOfMemoryError: PermGen space
>
> I did some googling and discovered that it is something related to
> garabage collecting but didn't find any article on a remedy.
> I am not doing complex things, just trying to follow a small tutorial
> for doing one servlet, one wsdl nothing big deal.
>
> My question, is there any fix or patch for this problem? what is
> annoying me is that during doing an operation for example transforming
> a class into web service, eclipse get stuck on a dialog page called
> "web service java bean identity", clicking on "next" continues to
> genertae variuos errors, clicking on cancel it doesnt close anything,
> I should kill eclipse from within a terminal session.
> Thanks for your help
>


--------------080008030505020003030005
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
This permgen issues has come up hundreds of times on various
newsgroups.
Re: PermGen space [message #210009 is a reply to message #210002] Sat, 08 March 2008 21:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: salamlinux.free.fr

So many thanks for this hint, once I added the key in the ini file, I
managed to go through in eclipse wizard.
However, now I can run/debug jsp pages but whenever I call or try to debug
a servlet, I get the following error

HTTP Status 404 - /web1/HelloServlet
type Status report
message /web1/HelloServlet

description The requested resource (/web1/HelloServlet) is not available.
Apache Tomcat/5.5.26

HelloServlet is there in my source folder, no errors declared and can not
understand wht resource is not available.

As I said, I am new to eclipse and java at the same time and following the
iterations in the quick start in a book I purchased called "Eclipse Web
tools platform by Naci Dai and his collegues.

In the book nothing is mentioned about troubleshooting or possible errros
and how to fix them

Thanks again
Re: PermGen space [message #210017 is a reply to message #210009] Sun, 09 March 2008 00:22 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

eliassal wrote:
> So many thanks for this hint, once I added the key in the ini file, I
> managed to go through in eclipse wizard.
> However, now I can run/debug jsp pages but whenever I call or try to
> debug a servlet, I get the following error
> HTTP Status 404 - /web1/HelloServlet
> type Status report
> message /web1/HelloServlet
>
> description The requested resource (/web1/HelloServlet) is not available.
> Apache Tomcat/5.5.26
>
> HelloServlet is there in my source folder, no errors declared and can
> not understand wht resource is not available.
>
> As I said, I am new to eclipse and java at the same time and following
> the iterations in the quick start in a book I purchased called "Eclipse
> Web tools platform by Naci Dai and his collegues.
>
> In the book nothing is mentioned about troubleshooting or possible
> errros and how to fix them
>
> Thanks again
>
Also note that there are bugs in this book's examples and places on the
web where you can get fixes for them. I wish I remembered where those
were as I've ordered this book too. I figured I'd find them again when I
needed them.

Note on your problem that there are solutions in the server.xml file
(look near the bottom of this file--it's under Server in the Project
Explorer). Also, as you begin to work with obfuscating paths that bear
no resemblance to the actual deployment because you've specified
otherwise in your web.xml (deployment) file, there are things Eclipse
isn't doing for you possibly as the result of a bug (or so another
poster here suggested). You might find yourself having to disassociate
then readd the project to the server and/or Clean then re-Publish.
Anyway, that's what I've had to do.

I'm sorry to say this without being able to give specifics right now. I
am in the process of putting together a tutorial explaining it and am
just about to write the servlet part at which point I'll be tackling
this and I'll try to nail down and write up just what's amiss. I'm
answering you in hopes of giving you a little bit more leg up on this
precisely because you say you're new to Eclipse (as am I).

The temporary home for my emerging tutorial is
http://www.windofkeltia.com/j2ee/wtp-tutorial.html. I've only just
finished the JSP level; next comes the servlet.

Russ Bateman
Re: PermGen space [message #210042 is a reply to message #210017] Sun, 09 March 2008 09:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: salamlinux.free.fr

So many thanks for this detailed explanation. Everything went OK for
iteration 1, 2.
When I started last iteration in quick tour which is transforming the
database servlet to web service I started having this issue.

The whole story why I am interested in eclipse and java is the fact that I
am involved heavily in SOA and ESB and I cime from another world (.Net and
Biztalk server).
I found a very interesting open source ESB called wso2 buit in java on
axis 2 and synapse. I have some pilot projects to provide to do a POC of
interoperability using axis2 and web services. So the bottom line for me
is to reach to do and debug web services in java.

I am really facing hard time with eclipse, java jdk....... Nothing is
going smooth, each time I try to progress I am faced with new platform
issue, either java, or eclipse or tomcat or......I am spending more on the
platform than developing. I am not saying other platforms dont have
problems, but not each step you go forward.

Is your tutorial will include as well a part for webservices as the
mentioned book. I will go and see your tutorial
Thanks again
Re: PermGen space [message #210050 is a reply to message #210017] Sun, 09 March 2008 12:40 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: salamlinux.free.fr

Let me take the opportunity of you knowing this book, in the iteration 4
of transforming the Database class into web service, where I can find the
generated skeleton of the web service itself?
By the end of the wizard, the service is up and running on a port
something like 6016, if you close the project and reopen it how can I
restart the web service and then run the test client

Thanks
Re: PermGen space [message #210056 is a reply to message #210017] Sun, 09 March 2008 14:45 Go to previous message
Eclipse UserFriend
Originally posted by: salamlinux.free.fr

let me ask 1 last small question : it is indicated in the book that once
you install all WTP components, you should have in views a tab for Data
which contains 2 branches 1 - DataBase explorer 2- Data output which is
not the case in my IDE, I dont have Data in my "other views".
Also, it indicates that we can use SQL Scrapbook editor which I dont have
neither
Previous Topic:What is new http server?
Next Topic:Eclipse WTP Tutorial
Goto Forum:
  


Current Time: Fri Apr 19 22:56:36 GMT 2024

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

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

Back to the top