Login  Register

Re: java 8 and OSX

Posted by Aryeh Weiss on Jul 13, 2016; 6:15pm
URL: http://imagej.273.s1.nabble.com/java-8-and-OSX-tp5016839p5016875.html

On 13/07/2016 8:04 PM, Manu Tiwari wrote:
> Hello Pioneers and Users,
>
> Is there any progress in resolving this issue?
> What has been posted are workarounds, but what is needed is a solution.
> I am experiencing the exact same problem: Mac + ImageJ (1.50b) + Java8 (latest update)—> very long loading times…the Menus appear very late especially with z-stacks.
> Any help is appreciated.

There is no solution yet. My situation improved a lot when I ran my
macros in batch mode, so I recommend you do that when possible.

The other action that appears to help is leaving zs much memory
available to the OS 9outside of ImageJ, as you can . Since my images are
often more than a GB, that can be a problem , but I manage with 10GB in
ImageJ out of 16GB.

These steps significantly lengthened the intervals between quitting and
restarting.

Curtiss wrote that he may be able to work on this in the Fall, so there
is hope.

If you are braver than I, Albert Cardona posted a link (see below) with
instructions on how to run Linux on your mac.

Best regards
--aryeh

> Best
> Manu
>
>
>
>
> ********************************
> Manu Tiwari
> Molekulare Zellbiologie
> Institut I für Anatomie
> Universität zu Köln
> Kerpener Str. 62, Geb.37
> D-50937 Köln Germany
> Tel.  +49 - 221 - 478 32655
>
>
>
>
>
>
> On 11 Jul 2016, at 19:58, Albert Cardona <[hidden email]<mailto:[hidden email]>> wrote:
>
> Hi Aryeh,
>
> I have used linux in macbook pros since 2005. Works better than MacOSX
> itself, and by better I mean better wifi, same battery life, same programs
> run faster, no swapping.
>
> The main motivation was the same issue you are experiencing now: Java never
> worked as well in macosx as it did in other operating systems.
>
> The best guide for installing Ubuntu in a MacBook Pro, better than my own
> guides, is this one:
>
> http://heeris.id.au/2014/ubuntu-plus-mac-pure-efi-boot/
>
> Make sure to read the whole thing before you start. You can also dual-boot
> easily.
>
> Best,
>
> Albert
>
> 2016-07-11 3:39 GMT-04:00 Aryeh Weiss <[hidden email]>:
>
> On 11/07/2016 10:29 AM, Curtis Rueden wrote:
>
> Hi Aryeh,
>
> Is there anything that I can do in either my Fiji configuration or my
> Java configuration to improve performance?
>
> The only workarounds I know of right now:
>
> - On OS X, use Apple Java 6
>
> I am using some plugins that require Java 7 or higher, so that is no
> longer an option.
>
> - Use Linux instead of OS X
>
> I am  seriously considering that, but it will require  new laptop because
> switching to Linux on a macbook pro is not for the faint of heart. For
> those who wish to try, this is relevant:
> http://www.makeuseof.com/tag/install-linux-macbook-pro/
>
> - Do not open and close many windows
>
> I will try to use batch mode as much as possible, and it buys some time.
>
> -- Of course, if you are doing exploratory viz and processing, you can't
> avoid it
> - Restart ImageJ after opening and closing many windows
>
> yes -- I have been doing a lot of that.
> I will add the one other thing that I found -- reducing ImageJ's memory
> appears to buy some time.
>
>
> Regards,
> Curtis
>
> --
> Curtis Rueden
> LOCI software architect - http://loci.wisc.edu/software
> ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
> Did you know ImageJ has a forum? http://forum.imagej.net/
>
> Best regards
>
> --
> Aryeh Weiss
> Faculty of Engineering
> Bar Ilan University
> Ramat Gan 52900 Israel
>
> Ph:  972-3-5317638
> FAX: 972-3-7384051
>
>
>
>
>
> On Mon, Jul 11, 2016 at 2:03 AM, Aryeh Weiss <[hidden email]
> <mailto:[hidden email]>> wrote:
>
>     Hi Curtis
>
>     Thank you for your reply. It is good to know that there is hope...
>
>     Is there anything that I can do in either my Fiji configuration or
>     my Java configuration to improve performance?
>
>     Best regards
>     --aryeh
>
>
>
>     On 11/07/2016 1:25 AM, Curtis Rueden wrote:
>
>         Hi Brandon & Aryeh,
>
>         I am fairly confident that the cause is attaching AWT menus
>         bars, as I
>         outline here:
>         http://forum.imagej.net/t/mac-java-speed-issues/304/4?u=ctrueden
>
>         Someone with a technical background needs to investigate the
>         potential
>         solutions to the issue that I mention in that post.
>
>         In particular, using the Apple-specific
>         "Application.setDefaultMenuBar"
>         method is highly likely to fix the issue. However, as I
>         outline here:
>         http://forum.imagej.net/t/mac-java-speed-issues/304/8?u=ctrueden
>
>         It would be a bit of work to add code to ImageJ2 to
>         hot-translate the
>         ImageJ 1.x AWT menu bar to a Swing JMenuBar. The good news is
>         that doing
>         this would have multiple advantages:
>
>         * The "grinding to a halt" performance problem would likely
>         disappear.
>         * We would have a richer menu bar with icons for ImageJ2
>         commands that
>         provide them. ;-)
>         * The menu bar flashing when you switch windows would no
>         longer happen.
>
>         The downside is that it is more complex internally, since we
>         would need to
>         keep the JMenuBar internally synchronized with the menu bar
>         that IJ1
>         believes is its menu bar (but in actuality is now never
>         actually attached
>         to any windows).
>
>         There might also be unforeseen technical obstacles with my
>         proposed
>         solution here. All in all, it would probably cost me several
>         days to
>         explore and implement this fix, and I currently have other
>         more urgent
>         priorities. But I will try to make time to do this work early
>         this fall.
>
>         Regards,
>         Curtis
>
>
>         --
>         Curtis Rueden
>         LOCI software architect - http://loci.wisc.edu/software
>         ImageJ2 lead, Fiji maintainer - http://imagej.net/User:Rueden
>         Did you know ImageJ has a forum? http://forum.imagej.net/
>
>
>         On Sun, Jul 10, 2016 at 5:15 PM, Brandon Hurr
>         <[hidden email] <mailto:[hidden email]>>
>         wrote:
>
>             We've been going back and forth on it a bit on the forums too:
>             http://forum.imagej.net/t/mac-java-speed-issues/304
>
>             I think we really need to help pin this down for Chris and
>             Wayne so they
>             can make a change. I've simply not had the time recently
>             to dig further,
>             but I intend to when the field season here settles down.
>
>             It is absolutely related to the changing of windows, but
>             what exactly is
>             causing it is unclear to me. It does not happen when in
>             batch mode. Only
>             when in interactive mode.
>
>             On Sun, Jul 10, 2016 at 4:23 AM, Aryeh Weiss
>             <[hidden email] <mailto:[hidden email]>> wrote:
>
>                 About a year ago I wrote about Fiji slowing down
>                 during use with Java 8
>                 and OSX.
>
> http://imagej.1557.x6.nabble.com/java-8-and-OSX-td5013642.html
>
>                 As this is still happening, I want to find out if
>                 there is any additional
>                 information about this.
>
>                 I am now using OSX 10.11.5 with Java 1.8.0_92 (64-bit).
>                 I have 16GB RAM.
>
>                 Wayne had noted that menu updates are problematic, and
>                 added a parameter
>                 SetMenuBarCount: to follow that.
>                 I note problems when this is over 50, but I cannot say
>                 when it really
>                 becomes unusable and I have to quit and start again.
>
>                 One thing that I noticed -- if I allocate 12GB to
>                 Fiji, then the problems
>                 will start much sooner than if I allocate 10GB to Fiji.
>                 So I suspect that some resource that Fiji uses, which
>                 is outside of Fiji,
>                 is using up memory (but I dont know how to check this).
>
>                 Do people who are running on high-powered Linux
>                 machines have this
>
>             problem?
>
>                 --aryeh
>
>                 --
>
>
>
>


--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel

Ph:  972-3-5317638
FAX: 972-3-7384051

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html