Comments (6)
You can limit the maximum amount of memory allocated to BlueMap by setting JVM options. This can be done by editing the startup script or command used to run BlueMap. Add the -Xmx flag to specify the maximum heap size.
from bluemap.
ty!
from bluemap.
Where do I add the JVM arguments? I've looked through all config files for bluemap. I don't want to set max memory for the whole server, just the bluemap process.
from bluemap.
I wonder what model Mac you have (CPU core count etc.). If you wish to configure BlueMap in such a way it uses less performance from your mac, while you are also using it, you can tweak it via tips in this section . As for running the whole time, BlueMap updates whenever a world has been saved, I am not sure how often you save a world.
from bluemap.
Model Name: Mac mini
Model Identifier: Macmini9,1
Chip: Apple M1
Total Number of Cores: 8 (4 performance and 4 efficiency)
Memory: 16 GB
I have the render threads set to 1, but that is for cpu. I am more worried about the memory usage.
from bluemap.
@ChicknTurtle Alright, so:
It's not possible to "limit" the RAM BlueMap uses separately to the rest of the server, that's not how Java-Heap works ^^
Also, did you do a Heap-Dump or how do you even know that bluemap is using more RAM than the server if it is running as a plugin on said server? ^^
To clear up a few things:
- Java reserves a specific amount of RAM for its Heap-Space. E.g. if you use
-Xmx6G
on your server Java will reserve up to 6GiB of RAM for heap-space and will usually not free this again during runtime. You should always only allocate as much RAM to your server as you can spare and expect this to always be used completely. - BlueMap does run completely fine with very limited amounts of heap
- BlueMap does not hard-reserve huge amounts of ram while rendering and especially not when idle
- BlueMap 5.2 does keep a soft memory cache for chunks it loaded to optimize rendering speed. However this is a SOFT allocation, meaning that if the JVM ever is in need of more Heap, Javas GarbageCollector will clear up that cache automatically and reuse it for things that are more important. -> BlueMap only uses Heap-Space for caching chunks that is NOT needed by anything else.
- Unused heap-space is wasted heap-space.
- If your server lags it is most likely not due to bluemap using too much ram/heap.
If you still think bluemap is using up too much ram/heap and it's not the soft-cache but actually hard memory-allocation that prevents the server from getting its own share of ram, then please attach a HeapDump for me to analyze, or a link to where i can download it. Otherwise please close this issue :)
from bluemap.
Related Issues (20)
- Nether only rendering up to Y90 HOT 1
- Rechiseled 1.20.1 Textures not applied properly HOT 2
- Improve plugin-startup times if there are maps for huge worlds
- [Feature] sphere marker / custom marker shapes HOT 1
- Incorrect default values provided in configuration file comments HOT 2
- MCARegion.iterateAllChunks() loop out exception log info HOT 2
- Error: RenderManager(0): WorkerThread(0): Exception while doing some work! java.util.NoSuchElementException: There is no TagType for id: 102 HOT 6
- [IDEA] Allow specifying map when first accessing the webapp by just providing map name HOT 1
- GPU Rendering support [Feature} HOT 2
- Deactivate surface collisions in Perspective mode HOT 1
- Strange cli bluemap behavior HOT 2
- No registered ImageReader is able to read the image-stream HOT 1
- reducing RAM consumption HOT 1
- Running as a fabric client mod? HOT 2
- I would like to make the 'Show chunk borders' setting default.
- Unable to properly handle fake players who go offline HOT 4
- No text editor available in Bluemap Docker container HOT 3
- Improve Marker performance HOT 1
- Show welcome and farewell messages to players HOT 5
- Carpet players dont leave the players in the webapp HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bluemap.