#Try -Xmx512m @question

1 messages · Page 1 of 1 (latest)

bronze lodge
#

Try -Xmx512m
If I use this option, will it affect if there are a lot of tracks?
My Server : 44GB

drifting yarrow
#

you use lavalink v4? 🤨

bronze lodge
#

i think yes 🤣

drifting yarrow
#

if it's latest release then no

bronze lodge
#

I didn't notice the release

drifting yarrow
#

-Xmxn
Specify the maximum size, in bytes, of the memory allocation pool. This value must a multiple of 1024 greater than 2MB. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes. The default value is 64MB. The upper limit for this value will be approximately 4000m on Solaris 7 and Solaris 8 SPARC platforms and 2000m on Solaris 2.6 and x86 platforms, minus overhead amounts. Examples:

#

it sets the limit

#

so it might go OOM (Out Of Memory)

bronze lodge
#

This limitation makes it in a limited environment

#

Like it's on a server
512M

drifting yarrow
#

but it forces the jvm to cleanup it's garbage more often

bronze lodge
#

Wait, I'll do a test

#

I'm not a fan of java 🤣 sorry

drifting yarrow
#

You don't have to be a fan :p

bronze lodge
#

On projects like this, I prefer ziglang

drifting yarrow
#

well just go yt-dlp & ffmpeg then

#

Don't need an external service for that

bronze lodge
#

No no you got me wrong

#

I like your project

drifting yarrow
#

Just giving you other options :p