Skip to content

vfork failing unless excessively large swap space configured #1286

Closed

Description

@chesterm8

Simple java class to reproduce the issue: Gist

Compiled and run using

At 5000MB the following is seen:

[bellchesters@DESKTOP]$ java -version
java version "1.8.0_101"
Java(TM) SE Runtime Environment (build 1.8.0_101-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.101-b13, mixed mode)
[bellchesters@DESKTOP]$ javac Main.java
[bellchesters@DESKTOP]$ strace -ff java Main 2>&1 | grep vfork
[pid  2398] vfork()                     = -1 ENOMEM (Cannot allocate memory)

At 16000MB the operation completes successfully.

Activity

  1. benhillis commented on Dec 1, 2016

    @benhillis
    Member

    Marking this as a duplicate of #851 - see my comment about the incoming fix #851 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions