For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 2 voices, and was last updated 20 years, 5 months ago by
Riyad Kalla.
-
AuthorPosts
-
We have been using MyEclipse for a year and a half developing a mvc solution using servlets and jsps. Our project is about 9 java projects and 4 MyEclipse war projects and a ear project. Totally we have about 2200, java, jsp, xml files all stored in ClearCase.
But we have performance problem. When the workspace is rebuild (Project -> Clean… -> Clean all projects) MyEclipse get stuck with compiling jsp pages. A total rebuild takes about 20 minutes where the 18/19 of these is spend compiling jsps. It looks that it takes about 5 seconds to compile a single jsp file.
The jsp files are using custom tag libraries defined in some of the related java projects.
Is this expected performance?
If not, how to tune the jsp build process?Tanks and regards Fredrik Hed
May 18, 2005 at 10:11 am #229799
Riyad KallaMemberFredrik,
Always give Eclipse more memory, we suggest
-vmargs -Xms128m -Xmx256mAlso what speed hardware are you on? On my P4 2.4 w/512ram average JSP compile time can be around 1.5-2secs for sufficiently complex pages.
May 20, 2005 at 1:58 am #229948Ok. I have given MyEclipse even more money.
-vmargs -Xms256m -Xmx512m
But it did not help.
MyEclipse are running on a Pentium 4, 2.6 GHz, 1GB RAM.
– Is is possible to configure MyEclipse so compilation of JSPs is only done while the JSP is opened in the editor?
– If not, how to turn of the compilation of JSPs?
– Are there any JSP compilations improvements done in the 3.8.4 release?I also found a number of this in the .log file. Can this nullpointer be the cause of bad JSP compiling performance? It seamed like I have one of those for each “Project -> Clean… -> Clean all projects”.
!ENTRY org.eclipse.core.runtime 4 2 May 11, 2005 08:23:16.22 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.runtime". !STACK 0 java.lang.NullPointerException at org.eclipse.jdt.internal.ui.preferences.CompilerConfigurationBlock.validateMaxNumberProblems(CompilerConfigurationBlock.java:916) at org.eclipse.jdt.internal.ui.preferences.CompilerConfigurationBlock.validateSettings(CompilerConfigurationBlock.java:842) at org.eclipse.jdt.internal.ui.preferences.CompilerConfigurationBlock.createContents(CompilerConfigurationBlock.java:291) at org.eclipse.jdt.internal.ui.preferences.CompilerPreferencePage.createContents(CompilerPreferencePage.java:65) at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:217) at org.eclipse.jdt.internal.ui.preferences.CompilerPreferencePage.createControl(CompilerPreferencePage.java:57) at org.eclipse.jface.preference.PreferenceDialog$12.run(PreferenceDialog.java:1008) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1003) at org.eclipse.jface.preference.PreferenceDialog$8.selectionChanged(PreferenceDialog.java:529) at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:450) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:616) at org.eclipse.core.runtime.Platform.run(Platform.java:747) at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:448) at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:708) at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:726) at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:200) at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:195) at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:349) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:106) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:2750) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2435) at org.eclipse.jface.window.Window.runEventLoop(Window.java:668) at org.eclipse.jface.window.Window.open(Window.java:648) at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:72) at org.eclipse.jface.action.Action.runWithEvent(Action.java:881) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:915) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:866) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(ActionContributionItem.java:785) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:796) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2773) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2432) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1377) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1348) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:254) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:141) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:96) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:335) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:704) at org.eclipse.core.launcher.Main.main(Main.java:688)Thanks and Regards Fredrik Hed
May 20, 2005 at 8:53 am #229961
Riyad KallaMemberFredrik,
How many problems do you have in the problem view? Do you only have a few, or do you have 100s? I’ve never seen this stack trace before, but it could be caused by too many errors.MyEclipse are running on a Pentium 4, 2.6 GHz, 1GB RAM.
Let’s do a test, go to File > Switch Workspace > C:\tempworkspace > hit OK let MyEclipse restart. Now go File > New > Project > Web Project, name TestWeb, hit Finish. Now add a JSP page to WebRoot dir, now Project > Clean All, how long does that JSP take to compile? Try and add 10 dummy JSP pages, how long do they take to compile? Is it faster?
– Is is possible to configure MyEclipse so compilation of JSPs is only done while the JSP is opened in the editor?
Make sure Project > Build Automatically is checked, this is just something I remembered.
Also, yes there is a way to manually “validate” or “compile” your JSP pages, but it requires you to right-click and select “Validate” on each one, if this is suitable for your team, then all you need to do is go to the MyEclipse-Validation settings of your project, and turn off JSP Validation, now you have to manually invoke JSP validation. Unfortunately this means when you save a file you are working on, errors won’t be marked in the left margin right away, you will need to validate manually to see the compiler errors.
– Are there any JSP compilations improvements done in the 3.8.4 release?
Not from 3.8.2.
-
AuthorPosts

