Showing posts with label Eclipse. Show all posts
Showing posts with label Eclipse. Show all posts

Monday, January 21, 2013

eclipse tomcat startup: Reveal end of document error( internal Error)

 

I am not sure if this is the root cause, however when i do the below the error is gone….

  1. restart eclipse; right click inn console; go to preferences
  2. make sure u select the below options and as these are

image

if u unselect the checkbox: limit console output and if u r console generates a lot of print stmts u get the error.

Monday, May 3, 2010

Finetuning Eclipse

I have to handle very huge projects (abt 100MB of code base or more) and oftern i see eclipse pausing/ hanging.. which is  very irritating. Explored a little how to fix it and the soln is as follows.

Open eclipse.ini file. This will be adjacent to the eclipse.exe in the eclipse dump.
Add the below entries:

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
384m
-vmargs
-Xms768m
-Xmx768m
-XX:PermSize=256m
-XX:MaxPermSize=256m
-XX:+UseParallelGC
-Dsun.lang.ClassLoader.allowArraySyntax=true





Thursday, July 17, 2008

Solving Memory problems

Issue:
CPU takes 100% usage and eclipse hangs.

Cause:lipse Project Release Notes 3.4
By default, Eclipse will allocate up to 256 megabytes of Java heap memory.
This should be ample for all typical development tasks. However, depending on
the JRE that you are running, the number of additional plug-ins you are using,
and the number of files you will be working with, you could conceivably have to
increase this amount. Eclipse allows you to pass arguments directly to the Java
VM using the -vmargs command line argument, which must follow all
other Eclipse specific arguments. Thus, to increase the available heap memory,
you would typically use:

eclipse -vmargs -Xmx<memory size>

Fix:
  1. Make a shortcut to the eclipse on desktop
  2. under target give: C:\pathToEclipse\eclipse\eclipse.exe -vmargs -Xmx768M
  3. For me even 512 was giving issues. Dont forget the M to the end else it would take it as Bytes!

Monday, July 14, 2008

Eclipse Ganymede

Seeing this new product i was exited... in fact it has a few exiting features in it. you can convert an ordinary file system project into dynamic web project (Eclipse europa didnt have this feature); bread crumps, remote system, terminal (i think u can configure the linux samba server and associate it with this... had not done thsi.. but with the docs is felt this is what i felt like) and javascript support.

Java script support is more refined than the other tools that i had seen (aptana, jseclipse). you can check the available methods, scope of variables .. syntax errors etc... navigating to the source (f3) etc. But theres a big pain in the neck!!!! The tool is hanging whenever i open a javascript file. THis is happening only recently.... till then all happies... then i tried updating the new patches from the eclipse and now the cpu is 100% used.. all the system hangs.. huh!!!

now i retook the eclipse from the site.. and again configured ... now i see that cpu is only 50% consumed but eclipse is still hanging when ever i open a js file. not sure why this is happeing. i have configured abt 4 huge projects in eclipse 3 of them are pure java the last one all jsps and js-s (abt 100 jsps and 50 js) i am not sure if this is the issue... what ever ..... when ever i open a js file the eclipse hangs... hanging me.. i wait .. wait.. wait.. indefinitely and finally end task... huh!!! today i did it atleast 4 times...

---------

hey got a soln.. though dirty one: i had included YUI in the build path of javascript now i removed it and all is working fine... (yeak!!!! so i cant have YUI in build path??? terrible isnt it??)