Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build runs out of memory #3155

Closed
p6rt opened this issue Jun 3, 2013 · 8 comments
Closed

build runs out of memory #3155

p6rt opened this issue Jun 3, 2013 · 8 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Jun 3, 2013

Migrated from rt.perl.org#118287 (status was 'resolved')

Searchable as RT118287$

@p6rt
Copy link
Author

p6rt commented Jun 3, 2013

From @coke

Now that this has landed on the nom branch​:

Using rakudo/nom @​ 2367dad -

$ make
nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
--encoding=utf8 \
  src/Perl6/Grammar.nqp
java.lang.OutOfMemoryError​: Java heap space
  in dump
  in classfile
  in
  in compile
  in eval
  in evalfiles
  in command_eval
  in command_line
  in MAIN
  in
  in make​: *** [blib/Perl6/Grammar.class] Error 1

$ nqp/install/nqp --version
This is nqp version 2013.05-151-gb0d3b9c built on JVM

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 4, 2013

From @coke

FYI​:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

1 similar comment
@p6rt
Copy link
Author

p6rt commented Jun 4, 2013

From @coke

FYI​:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

@p6rt
Copy link
Author

p6rt commented Jun 4, 2013

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Jun 4, 2013

From @nwc10

On Tue, Jun 04, 2013 at 08​:54​:14AM -0700, Will Coleda via RT wrote​:

FYI​:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Not that I have a great idea on this, but "out of memory" on which step?
Compiling the setting?

and what platform - x86_64 (GNU) Linux?
How much RAM?
If you use -Xmx to set a larger heap size, does it work?

Nicholas Clark

@p6rt
Copy link
Author

p6rt commented Jun 4, 2013

From @coke

On Tue Jun 04 09​:59​:57 2013, nicholas wrote​:

On Tue, Jun 04, 2013 at 08​:54​:14AM -0700, Will Coleda via RT wrote​:

FYI​:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Not that I have a great idea on this, but "out of memory" on which step?
Compiling the setting?

and what platform - x86_64 (GNU) Linux?
How much RAM?
If you use -Xmx to set a larger heap size, does it work?

Nicholas Clark

From the original post​:

nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
--encoding=utf8 \
src/Perl6/Grammar.nqp

That's the step that dies. If I add

-Xms500m -Xmx2g

(copied from elsewhere in rakudo-java's Makefile), and add it to the command line there, the
build works.

This probably isn't something we should add by default to the installed nqp, but we should
consider allowing this to be a command line option to nqp's configure step. (and add a
warning in the nqp readme)

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 5, 2013

From @coke

On Tue Jun 04 13​:03​:04 2013, coke wrote​:

On Tue Jun 04 09​:59​:57 2013, nicholas wrote​:

On Tue, Jun 04, 2013 at 08​:54​:14AM -0700, Will Coleda via RT wrote​:

FYI​:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

Not that I have a great idea on this, but "out of memory" on which
step?
Compiling the setting?

and what platform - x86_64 (GNU) Linux?
How much RAM?
If you use -Xmx to set a larger heap size, does it work?

Nicholas Clark

From the original post​:

nqp/install/nqp --target=classfile --output=blib/Perl6/Grammar.class
--encoding=utf8 \
src/Perl6/Grammar.nqp

That's the step that dies. If I add

-Xms500m -Xmx2g

(copied from elsewhere in rakudo-java's Makefile), and add it to the
command line there, the
build works.

This probably isn't something we should add by default to the
installed nqp, but we should
consider allowing this to be a command line option to nqp's configure
step. (and add a
warning in the nqp readme)

Added a note to the README for now; Closing ticket.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jun 5, 2013

@coke - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Jun 5, 2013
@p6rt p6rt added the java label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant