- This topic has 5 replies, 3 voices, and was last updated 13 years, 8 months ago by support-joy.
-
AuthorPosts
-
christweekieMemberHi
I am running MyEclipse 9 on a web project. I am finding that the memory usage of MyEclipse just seems to grow and grow and ends up hanging and becomes completely unusable. Yes – I have altered the memory settings in the configuration file. Interestingly, if I use a straight copy of Helios in the same workspace, the same problems do not happen so this is something that MyEclipse is doing.
There are only about 3 projects. I am editing a few JSPs / Java files. I previously had trouble because MyEclipse seems to continually want to validate my Javascript (.js) files of which there are VERY many (we have a local copy of DOJO).However, I managed to turn this off.
The projects are Maven ones which means that we have a “target” directory and this directory is used by WebLogic when we run the application. I wondered whether this was having an effect because presumably, WebLogic is polling that same directory. However, I turned off “build automatically” and that doesn’t help. It makes no difference whether I run WebLogic from within MyEclipse or as an external app.
What information can I give you to help diagnose and fix the problem ? This is really important because MyEclipse has become unusable.
Cheers
Chris
Brian FernandesModeratorChris,
Is there any specific action that is triggering the hang? Does it happen when you save a file or are using a specific editor? Or does it just happen after you have had the IDE open for some time?
What is the current content of your myeclipse.ini file and are you using a 32 or 64 bit version of MyEclipse?
How did you disable Javascript validation? While the validation may be disabled, the indexer will still run and if you have many JS files, this could be causing the memory issue.
The best way to remove our JavaScript analysis is to go to Project Properties > MyEclipse > JavaScript > Include Path and the Source tab. Then select either the Included or Excluded nodes and click “Edit”. In the resulting dialog, click Add in the Exclusion patterns section and type in “WebRoot/*” (you may need to change this is your WebRoot is differently named). This will prevent the JavaScript indexer from running for all resources under your project’s WebRoot folder. Alternatively you could only specify the path to your DOJO resources. Could you make this setting, restart MyEclipse and let me know if it helps?
christweekieMemberHi
Thanks for the quick reply and tips.
Specific situation ? No- not really. It might happen 10 minutes after restarting myeclipse or it might take an hour. I don’t think it matters whether I am editing JSP / Java / whatever.
myeclipse.ini is at the very end of the message. 32 bit on Windows.
I found that disabling javascript using the normal right-click “exclude from validation” and selecting the folders / files didn’t help because myeclipse kept the red blobs on files it didn’t like. Also, there were still pauses whilst using MyEclipse. There are other posts about this issue I think. Eventually I stopped the validation by right clicking on the project, going to “Builders” where I saw Javascript Validator, Java Builder and Validatiion. I deselected just the Javascript one and this removed the red blobs and the excessive validation.
I have tried your suggestion by excluding “**/*.js” – does that sound OK ? I’ll carry on with that and let you know. If you have any observations about what I did above, I’d be very grateful !
Cheers
Chris
#utf8 (do not remove)
-clean
-startup
../Common/plugins/org.eclipse.equinox.launcher_1.1.0.v20100507.jar
–launcher.library
../Common/plugins/org.eclipse.equinox.launcher.i18n.win32.win32.x86_3.2.0.v201102231800
-install
C:\Program Files\MyEclipse\MyEclipse 9
-vm
C:\Program Files\MyEclipse\Common\binary\com.sun.java.jdk.win32.x86_1.6.0.013\jre\bin\client\jvm.dll
-configuration
C:\Program Files\MyEclipse\MyEclipse 9\configuration
-vmargs
-Xmx512m
-XX:MaxPermSize=256m
-XX:ReservedCodeCacheSize=64m
Brian FernandesModeratorChris,
1) I believe that pattern should be fine.
2) You could try increasing your Xmx setting to 768 (so -Xmx768) from 512 in case your workspace really does need more memory.
Please let me know how it goes.
christweekieMemberHi
I have worked all day with these settings and not had any problems !
I think we can close this down. Thanks so much
support-joyMemberGood to hear you are all set.
Best.
-
AuthorPosts