Just received PostgresDB shared memory problem "No space left on device"
The actual error message was
Looking at the charts, it did hit the max
3 GB
at one point. Is there a way to increase the size?Solution:Jump to solution
you are on the Pro plan, so you can indeed increase the shm size.
for context the default shim size is 64MB.
set a service variable
RAILWAY_SHM_SIZE_BYTES
to 134217728
to increase the shared memory to 128MB...10 Replies
Project ID:
3747f720-8c9c-4d81-9b13-1e420ceabd6c
3747f720-8c9c-4d81-9b13-1e420ceabd6c
You can increase it by upgrading to the Pro plan
New reply sent from Help Station thread:
Yes and my company is already paying for the Pro plan. So how do I upgrade it?You're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:
Hmm this error seems to be related to PostgresDB Service's docker containerYou're seeing this because this thread has been automatically linked to the Help Station thread. New reply sent from Help Station thread:shm_size
limit issue. I wonder what the default value of that is as I didn't add any environment variable to that service. As the error message suggests, we went over like4MB
.
Hmm this error seems to be related to PostgresDB Service's docker containerYou're seeing this because this thread has been automatically linked to the Help Station thread.shm_size
limit issue. I wonder what the default value of that is as I didn't add any environment variable to that service. As the error message suggests, we went over like4MB
. damn i need some sleep, i read storage in your screenshot for some reason. unfortunately Railway doesnt support docker cli flags so changing theshm_size
is not supported on Railway.
Solution
you are on the Pro plan, so you can indeed increase the shm size.
for context the default shim size is 64MB.
set a service variable
RAILWAY_SHM_SIZE_BYTES
to 134217728
to increase the shared memory to 128MB@Kurdiez @ThallesComH for visibility
oh didnt know Railway included that variable
neither did i, until they told me
but even though you both are Pro, its best to be conservative with the value
well they should document it
https://docs.railway.app/reference/variables
we talked about this, and we think its best to keep it on the down low for now
you are welcome to dm me if you want to know why