Skip to content

Error: Exception in thread "Task submitter" java.lang.OutOfMemoryError: Java heap space #6835

@desmodus1984

Description

@desmodus1984

Expected behavior and actual behavior

It should terminate after an error, right?

Steps to reproduce the problem

I can't share my data but I will share the code...
I ran #InterproScan @ebi-pf-team and I ran it with 16 parallel processes/cores. I am running on a workstation with Linux, 16 cores/ 32 GB RAM.
I used the following code:

nextflow run ebi-pf-team/interproscan6     -profile apptainer --goterms     --input LW3.fasta --pathways     --datadir data --max-workers 16

I ran well but then I got this error:

Plus 7 more processes waiting for tasks…
ERROR ~ Execution aborted due to an unexpected error

 -- Check '.nextflow.log' file for details
Exception in thread "Task submitter" java.lang.OutOfMemoryError: Java heap space

1st- I ran this on the Documents folder and there is no .nextflow.log there, nor I can't make sense where it should or ought to be. I thought it would be in the same directory where I ran, and it is not there. So, I can't upload it because I can't find it.

2nd. My data is sensitive so I can't share it. I shared the code, hope someone can help me how to make it run in my system - as described above.

3rd. Normally, after a code runs into an error, the shell returns to the point where I can type/write on the command line - AND the shell is still like running the code- though, the CPUs are not working or active.

Environment

  • Nextflow version: [?]

  • nextflow version 25.10.3.10983

  • Java version: [?]

  • java --version
    openjdk 21.0.9 2025-10-21
    OpenJDK Runtime Environment (build 21.0.9+10-Ubuntu-124.04)
    OpenJDK 64-Bit Server VM (build 21.0.9+10-Ubuntu-124.04, mixed mode, sharing)

  • Operating system: [macOS, Linux, etc] - Linux

  • Bash version: (use the command $SHELL --version)$SHELL --version
    GNU bash, version 5.2.21(1)-release (x86_64-pc-linux-gnu)
    Copyright (C) 2022 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Additional context

(Add any other context about the problem here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions