Welcome! Log In Create A New Profile

Advanced

Jucy takes a long time to launch. OSX

Posted by Raven 
Jucy takes a long time to launch. OSX
July 06, 2010 04:22AM
Hey,

I'm using version 0.84 32bit for Mac running 10.6.4. I'm not sure if this is a bug or not, but Jucy takes a really long time to launch. From the time I double click the .app it can take up to 2 full minutes of staring at the splash screen until the interface comes up and connects. Since there aren't actually any errors, I'm not sure if I should post the log or not. Let me know what you need and I'll post it. Thanks.
Re: Jucy takes a long time to launch. OSX
July 07, 2010 01:38AM
For me it did take way less time.

You could start the application from commandline and see if there is any kind of strange debug output...


When you click on the splash screen does it then go away sooner?
Does the slow starting persist anyway as it might take long for the first start (database updates...) but that should be only once..

------------------------------------------------------------------------
Freedom is a new religion, the religion of our time.
- Heinrich Heine
Re: Jucy takes a long time to launch. OSX
July 08, 2010 03:25PM
i found if jucy is left selected it loads quick but if u select something else it takes a long time.
Re: Jucy takes a long time to launch. OSX
July 09, 2010 08:30PM
The long load time happens every time jucy is launched, not only the first time. I did try to click the splash screen and it lowered the start time from 2 minutes to about 30 seconds or so, which is much more acceptable. I'm not sure how to launch an app from the command line, but if you give me the command I'll try it out.
Re: Jucy takes a long time to launch. OSX
July 09, 2010 09:13PM
to start jucy from the shell try "open Jucy.app" as command...



What CPU/how much RAM do you have?

------------------------------------------------------------------------
Freedom is a new religion, the religion of our time.
- Heinrich Heine
Re: Jucy takes a long time to launch. OSX
July 14, 2010 12:45AM
Sorry I took so long to get back to you, been outta town.

Anyway, I tried launching Jucy from terminal and there wasn't any strange output at all. It launched fine and error free. I'm using a 2ghz macbook with 1 gig of ram. It's a black one, one of the older Core Duo models.
btx
Re: Jucy takes a long time to launch. OSX
November 09, 2010 10:25AM
It looks like all the very slow launch issues were due to memory - at least it seems that way. The db used in Jucy for logs and such was sending out heap overflow errors, and i was unable to purge my logs until I bumped my heap size up (I didn't investigate an optimal size, I just set it to 1Gcool smiley.

After doing that + purging my logs, Jucy starts much faster (like 15-20 seconds faster), and so far I haven't had any of the odd pauses that I used to get after running the client for a day or so. I guess that was gc <shrug>. I'm going to try it at 768m heap to see if that's sufficient... the Jucy process seems to be using a reasonable amt of active RAM (256MB or something) but a gigantic amt of Virtual memory (800MB or so of private VM). I'm guessing much of this is due to Apple's version of Java, which seems to be extremely bloated.

Oh, in case you care, here's what the heap error looked like when trying to purge...

21 Oct 2010 10:20:34,383 WARN HSQLDB.java Line:1230 java.sql.SQLException: java.lang.OutOfMemoryError: Jav
java.sql.SQLException: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.fetchResult(Unknown Source)
at org.hsqldb.jdbc.JDBCPreparedStatement.executeUpdate(Unknown Source)
at eu.jucy.database.HSQLDB.pruneLogentrys(HSQLDB.java:1210)
at eu.jucy.gui.logviewer.LogViewerEditor$1.widgetSelected(LogViewerEditor.java:158)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.sendEvent(Display.java:3776)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1367)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1390)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1375)
at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1187)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3622)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3277)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at eu.jucy.gui.Application.start(Application.java:89)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
Caused by: org.hsqldb.HsqlException: java.lang.OutOfMemoryError: Java heap space
at org.hsqldb.error.Error.error(Unknown Source)
at org.hsqldb.result.Result.newErrorResult(Unknown Source)
at org.hsqldb.StatementDMQL.execute(Unknown Source)
at org.hsqldb.Session.executeCompiledStatement(Unknown Source)
at org.hsqldb.Session.execute(Unknown Source)
... 33 more


If you need me to produce memory output maps or something, let me know.

btx
Re: Jucy takes a long time to launch. OSX
November 09, 2010 08:56PM
hmm not very nice values...

I will also hope that when OpenJDK becomes standard jre for Mac that the situation improves.

I really don't know how to exaplain the differences and don't know how to debug this.

------------------------------------------------------------------------
Freedom is a new religion, the religion of our time.
- Heinrich Heine
Sorry, only registered users may post in this forum.

Click here to login