Skip to content

OutOfMemoryError when running the Asciidoctor tests suite against TruffleRuby 19.0.0 #1696

Open
@ggrossetie

Description

@ggrossetie

I'm trying to run the Asciidoctor tests suite against TruffleRuby 19.0.0. Here's the pull request: https://github.com/asciidoctor/asciidoctor/pull/3305/files

On Travis, I get an java.lang.OutOfMemoryError: Could not allocate an aligned heap chunk: https://travis-ci.org/asciidoctor/asciidoctor/jobs/534193527
Since the build didn't complete after 50 minutes, the stack trace is probably truncated:

the job exceeded the maximum time limit for jobs, and has been terminated.

To reproduce this error:

$ git clone https://github.com/asciidoctor/asciidoctor.git
$ cd asciidoctor
$ rvm install truffleruby-19.0.0
$ rvm use truffleruby-19.0.0
$ bundle install
$ bundle exec rake test

Please note that on my local machine (16gb) I cannot reproduce this error but the test suites is running very slowly compared to JRuby or MRI (something like 10th slower).

I'm wondering if we should just use more memory or if there's a memory leak hiding somewhere...
Could you please give me some hints on how to generate a heap dump, so I can dig further ? 🤓

Thanks!

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions