petergroeneweg commented on issue #2774:
URL: 
https://github.com/apache/apisix-dashboard/issues/2774#issuecomment-2209175384

   Encountered the same problem. Noticed the issue only occurs on specific 
pages like `Route Create` or `Plugin List`. When checking these files it 
appears the are amongst the largest files with file sizes well over 4MB.
   
   ```
   # ls -hlaS
   total 38M
   -rw-r--r-- 1 root root 5.3M Jul  4 14:24 p__Route__Create.e96aeeec.async.js
   -rw-r--r-- 1 root root 4.4M Jul  4 14:24 p__Plugin__List.0fd8b7d1.async.js
   -rw-r--r-- 1 root root 4.0M Jul  4 14:24 p__Service__Create.cc3449dc.async.js
   -rw-r--r-- 1 root root 3.8M Jul  4 14:24 
p__Plugin__PluginMarket.8974425f.async.js
   ...
   ```
   
   Remembered when building that the `NODE_OPTIONS` flag `--max_old_space_size` 
is set to `4096` in 
[package.json](https://github.com/apache/apisix-dashboard/blob/ad697c643908faf99fb33a0970f6d95573fcca87/web/package.json#L10).
 Increased the size and rebuild the dashboard using `make build`. Pages like 
`Route Create` and `Plugin List` now load normally. Hope it helps someone else.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@apisix.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to