Eclipse internal error - eclipse

Today when i started my eclipse it gave me following error:
org.eclipse.jst.jsp.core.internal.parser.JSPSourceParser:
input could not be parsed correctly at position 150449
java.lang.StackOverflowError
Then it shows another error
An internal error occurred during:
"JSP Index Manager: Processing Resource Events".
java.lang.StackOverflowError
and then show the error and when i click on yes button it close the eclipse,
I am using eclipse indigo, can any one help please.

Most typical reason for this error is that Eclipse or its part (e.g. source code parser) ran out of memory. To increase the memory, add/change the following parameters in eclipse.ini. Depending on your machine memory, increase them 4x, even 8x:
-XX:MaxPermSize=512m -Xss2m -Xms128m -Xmx512m
You can also use these parameters as eclipse command line parameters.
See details, for example, here: Understanding memory parameters for Eclipse

If memory changes in .ini does no do the trick , best way will be to close any other applications running , after that open Task Manager , and close JAVA services running . Restart the eclipse . NOTE :- This will close the programs using Java if they are open .

Related

Why does eclipse close by itself while running?

It's been happening lately for some unknown reason.I have the latest version of Eclipse ADT (25 Sept 2014) and it just shuts off while I'm working. Any ideas?
Start Eclipse from a terminal to see the standard output. Chances are that the Java VM runs into a problem because of SWT which can crash the VM. Note: If you're using Windows, you may have to use java.exe instead of javaw.exe to get output.
Also look into the Error Log. Eclipse has a view for that or look into the file .../workspace/.metadata/.log The file might contain an error message.
If you find an error in either the console or the error log, let us know and we might be able to help.
The issue could also be because of the JVM that was chosen for the project.

Tomcat V7.0 server out of memory error in eclipse

I am trying to run two separate projects from my tomcat server on eclipse. It will run each individually but when I try to run them both at the same time, it will not start and it prints the following on the console:
Exception in thread "main"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "main"
I have done some experimenting by increasing my heap by starting eclipse with :
eclipse.exe -vmargs -Xms512m -Xmx512m -XX:PermSize=128m -XX:MaxPermSize=128m
I have increased the values but still no luck. I have also tried creating a new server and I still get the same error. The interesting part is that I am working with team with the exact same code and neither member is having this problem. One member has exactly the same computer with the same ram and all specs, so I don't believe that I am truly running out of memory. Does anyone know of any other possible solutions to this problem?
-Thanks in advance
If Tomcat is running out memory, you need to give Tomcat more memory, not Eclipse. From the Run menu, open the Run Configurations and modify the VM arguments for your Tomcat launch.

How can I use Eclipse Memory Analyzer Tool to dump the heap from a running process?

I created a simple console application that I run from Eclipse (right clicking on the file and selecting run as Java application.) I stuck a sleep in there so I can ensure that the process is still running when I start the Aquire Heap Dump Dialog. I start the dialog, hit refresh, and there are no local processes listed.
I checked Eclipse's error log and it only reports that it had problems listing the IBM VM processes (the HPROF one is configured and working fine.)
What am I doing wrong?
Why not create the heap dump from your program code?
https://blogs.oracle.com/sundararajan/entry/programmatically_dumping_heap_from_java
Or when that runs into security issues from here:
create heap dump from within application, without HotSpotDiagnosticMXBean
I used that to take a heap dump after a fixed number of iterations in my JUnit tests, all that is left to do is open the dumps in Eclipse MAT and find the cause of the memory leak :-(
I faced same issue and after googled I found this solution.
Specify jdk path in "Acquire Head Dump" -> "Configure..." -> Select "HPROF jmap dump provider" -> "-jdkhome" -> speficy jdk path by default it should be
"C:\Program Files\Java\jdk1.8.0_102" or your jdk location.
I hope it works for you.

Eclipse CDT: org.eclipse.cdt.internal.ui.text.CReconciler, java.lang.OutOfMemoryError

I can run Eclipse with CDT for about 15 minutes before it crashes with a java heap space out of memory error. Its always associated with the org.eclipse.cdt.internal.ui.text.CReconciler thread. It's gotten to the point where I'm running on auto pilot when it happens: "rm .lock", "y", "eclipse&" and away I go. I can't find relevant information with the Google nor have I found a similar post on SO. Anyone else run into this kind of issue before?
I'm using
Eclipse 3.6.1, Build ID: M20100909-0800
CDT 6.1
Subversion 2.2.1
Pydev 1.6.3.2
OS: Red Hat 2.16
Intel quad core machine, single monitor
I don't have root access. I don't know what other information someone might need to help diagnose this. IT person has tried to find more information but even he doesn't know what's going on. This is not strictly an issue with just my computer either.
It is possible that you need more heap space than the default Eclipse setting provides. Try launching Eclipse with 1G of heap by editing eclipse.ini and change the line starting with -Xmx to
-Xmx1024m
Alternatively you can launch from the command line with
eclipse -vmargs -Xmx1024m
[UPDATE - probably should have been suggested first ]
Tail the log file at _<workspace>_/.metadata/.log to see if there is any recurring event or error that might be leaking memory.

What could cause EasyEclipse to terminate with error window?

When I start EasyEclipse, I get error:
JVM terminated. Exit code=127
Do you have any idea as to the possible cause for this kind of error message?
If this happen right from the start, it may be related to your eclipse.ini content.
See this one (for Eclipse 3.6 Helios),
and check the end of each lines of your eclipse.ini: there should be no extra space.
After that, it depends on:
the exact Eclipse version
the exact JVM used to launch said Eclipse
your platform (OS)
See for instance bug 174642.