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

Typedoc keeps hanging and generates a lot of logs #12

Closed
SimonCockx opened this issue May 26, 2020 · 4 comments
Closed

Typedoc keeps hanging and generates a lot of logs #12

SimonCockx opened this issue May 26, 2020 · 4 comments
Labels
bug Something isn't working

Comments

@SimonCockx
Copy link

When I run typedoc with this plugin enabled, the console hangs at Documentation generated at ... and doesn't continue. The only thing that happens is that it keeps generating log-files hs_err_pidxxxx.log with a trace starting with There is insufficient memory for the Java Runtime Environment to continue. Also log files called replay_pid1000.log. I'm guessing this plugin consumes too much memory.

Console output:

> typedoc --umlClassDiagramType detailed --excludePrivate --tsconfig src/tsconfig.app.json --mode modules -module commonjs --exclude **/*.spec.ts --out documentation/typedoc src/app && documentation\serve-typedoc

Loaded plugin C:\Users\Werk\Desktop\beerhive\venuewebsite\node_modules\typedoc-umlclass

Using TypeScript 3.8.3 from C:\Users\Werk\Desktop\beerhive\venuewebsite\node_modules\typescript\lib
Rendering [========================================] 100%

Documentation generated at C:\Users\Werk\Desktop\beerhive\venuewebsite\documentation\typedoc

hs_err_pid1000.log
replay_pid1000.log

@krisztianb
Copy link
Owner

krisztianb commented May 26, 2020

Yes, there is definitely a memory and CPU usage issue. It depends on how many diagrams are generated. However I've not had this log issue you are experiencing.

The main problem is that I'm using the node-plantuml module which spawn a separate JAVA process for each diagram that is generated.

Actually I want to replace that module as I think it is too complicated and no longer maintained. I hope we can solve this issue with another module: agirorn/plantuml#2

Also related to: #4

@krisztianb krisztianb added the bug Something isn't working label May 26, 2020
@krisztianb
Copy link
Owner

Can you tell me where those log files are generated?

@SimonCockx
Copy link
Author

They were generated in the current directory of the terminal.

@krisztianb
Copy link
Owner

Closing this. Solution is going to be the same as for #4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants