From: FORREST E. <for...@ad...> - 2005-05-20 15:38:59
|
Thanks, that worked. I wonder if it'd be possible to make this a feature request for the next = release. Forrest Evans > -----Original Message----- > From: jed...@li... > [mailto:jed...@li...]On Behalf Of Dirk > Moebius > Sent: Friday, May 20, 2005 5:47 AM > To: jed...@li... > Subject: Re: [ jEdit-users ] Memory Status Bug??? >=20 >=20 > > It appears that the memory status indication in Jedit=20 > indicates a high > > water mark as opposed to the actual total bytes. > > =20 > > It would be nice to be able to see exactly how much memory=20 > is available.=20 > > I have to run with 128Mb instead of the default 64Mb as do=20 > others that I > > work with. The problem is that you don't necessarily know=20 > how much you > have > > until you run out. In trying to get others setup with more=20 > heap, I don't > > know if it actually worked. >=20 > Before JDK 1.4 that was not possible. In JDK 1.4, Sun added the method > maxMemory() to java.lang.Runtime.=20 >=20 > Since jEdit 4.3preX now requires JDK 1.4, it could use it to=20 > display the max > memory on either the statusbar or with=20 > "Utilities->Troubleshooting->Memory > Status".=20 >=20 > In the meantime, open "BeanShell->Evaluate BeanShell=20 > expression" and enter > "Runtime.getRuntime().maxMemory() / 1024" to get the=20 > available max memory in > kBytes. >=20 > Dirk. >=20 > --=20 > 5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail > +++ GMX - die erste Adresse f=FCr Mail, Message, More +++ >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Oracle Space Sweepstakes > Want to be the first software developer in space? > Enter now for the Oracle Space Sweepstakes! > http://ads.osdn.com/?ad_id=3D7412&alloc_id=3D16344&op=3Dclick > --=20 > ----------------------------------------------- > jEdit Users' List > jEd...@li... > https://lists.sourceforge.net/lists/listinfo/jedit-users >=20 |