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

Find out what breaks parallel execution #7

Closed
jpommerening opened this issue Jul 27, 2017 · 2 comments
Closed

Find out what breaks parallel execution #7

jpommerening opened this issue Jul 27, 2017 · 2 comments
Assignees
Labels

Comments

@jpommerening
Copy link
Member

When webpack builds mulitple PDFs in parallel, node-java throws a weird exception.
We should either find out what causes this, or make sure JVM related things are called sequentially.

@jpommerening
Copy link
Member Author

jpommerening commented Aug 4, 2017

Hmm … it seems the two garbage collectors are fighting over the LogWriter proxy. (Well, once you get past the .some( ... instanceOf( ... ) ) thing by just recording somewhere that the logger is initialized.)

I implemented the colorizing log writer in Java, successfully eliminating the problem.

/cc @alex3683

Btw. One-and-a-half-liner to compile the Java files:

docker run -i -t -v $(pwd):/tmp/pdfr -w /tmp/pdfr java:7-alpine \
   javac -cp java $(find java -name "*.java")

@jpommerening
Copy link
Member Author

Fixed on master (v0.3.0)

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