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

Removing LimitChunkCountPlugin: 1 for server #81

Open
MartinCerny-awin opened this issue Apr 1, 2019 · 3 comments
Open

Removing LimitChunkCountPlugin: 1 for server #81

MartinCerny-awin opened this issue Apr 1, 2019 · 3 comments

Comments

@MartinCerny-awin
Copy link

I have fairly big single page application using react-universal-component and as it went big I had an issue when loading server code. The app was always running out of memory. The fix I used was to increase max-old-space-size when starting node, but I was thinking if it would not be possible to split server code into multiple files. This would make it much easier to handle for servers with limited memory and there would not be any need to increase memory.

@dashukin
Copy link
Contributor

@MartinCerny-awin, do you have any metrics around memory consumed by server side application? What is the total size of your app running on server side?

@MartinCerny-awin
Copy link
Author

Main file is 3.5 MB and the application crashes if the memory is less than 2.5 GB.

@SuperOleg39
Copy link

Also, server code splitting can improve development rebuild speed.

At this moment, limitation for one server bundle still actual?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants