public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Sebastiaan <sebastia@ch.its.tudelft.nl>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] java.lang.OutOfMemoryError on amd64
Date: Sat, 18 Mar 2006 12:39:21 +0100 (CET)	[thread overview]
Message-ID: <Pine.LNX.4.61.0603181236550.21900@ch.its.tudelft.nl> (raw)
In-Reply-To: <441B31A5.9080407@gentoo.org>

[-- Attachment #1: Type: TEXT/PLAIN, Size: 2036 bytes --]

Hi!

On Fri, 17 Mar 2006, Joshua Nichols wrote:

> Whoops... accidentally replied off list much earlier today.
>
> Sebastiaan wrote:
>> I have tried to increase the amount of memory java can use by adding 
>> -J-Xms48m to the command (right after configuration, since a second 
>> compilation attempt always works), but without succes.
>> 
> -Xms sets the initial memory allocated. You probably want -Xmx, which sets 
> the maximum amount of memory that will be allocated, and you probably want 
> this to be fairly high, or at least more than 48m.
> If you're going to patch the makefiles, a clean way to do it may be to add 
> like a variable JAVACFLAGS, which we can then set in the ebuild like:
> use amd64 && JAVACFLAGS="-J-Xmx256m ${JAVACFLAGS}"

Yes! This works.

>> Does anyone have an idea what the problem can be? I am unsure if the 
>> problem lies within VTK or Blackdown. Sun-jdk does not have a 64 bit 
>> version available, so I cannot compare with that.
>> 
> I'm pretty sure it's a blackdown on amd64 thing. We do encounter it for a few 
> packages, like net-p2p/azureus. For the record, there is a amd64 version of 
> sun-jdk-1.5 (and 1.6...), but I'm sure at this point I shouldn't have to go 
> into the concerns about using them ;)
>

I am still a little bit disfigured: is the problem is the amount of 
allocated memory, why does a second make always work? Perhaps javac is 
keeping some cache?

Thanks!
Sebastiaan


>> References:
>> I have previously posted this to 
>> http://bugs.gentoo.org/show_bug.cgi?id=123178 as well.
>> 
>
> Hope this helps,
> - Josh
>


--

English written by Dutch people is easily recognized by the improper use of 'In principle ...'

The software box said 'Requires Windows 95 or better', so I installed Linux.

Als Pacman in de jaren '80 de kinderen zo had beïnvloed zouden nu veel jongeren rondrennen 
in donkere zalen terwijl ze pillen eten en luisteren naar monotone electronische muziek. 
(Kristian Wilson, Nintendo, 1989)

      reply	other threads:[~2006-03-18 11:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17 14:59 [gentoo-java] java.lang.OutOfMemoryError on amd64 Sebastiaan
2006-03-17 19:59 ` Greg Tassone
2006-03-20 10:20   ` Sebastiaan
2006-03-17 22:01 ` Joshua Nichols
2006-03-18 11:39   ` Sebastiaan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.61.0603181236550.21900@ch.its.tudelft.nl \
    --to=sebastia@ch.its.tudelft.nl \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox