You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "beryllw (via GitHub)" <gi...@apache.org> on 2024/08/22 03:10:35 UTC

[PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

beryllw opened a new pull request, #66:
URL: https://github.com/apache/gravitino-playground/pull/66

   Add Gravitino jvm mem options to prevent the Gravitino Server process from being killed by the kernel's OOM killer.
   
   gravitino.env.sh.template
   ```
   # export GRAVITINO_MEM         # Gravitino jvm mem options Default -Xms1024m -Xmx1024m -XX:MaxMetaspaceSize=512m
   ```
   docker-compose.yaml
   ```
     gravitino:
       image: datastrato/gravitino:0.5.1
       deploy:
         resources:
           limits:
             cpus: "0.5"
             memory: 500m
   ```
   
   ```
   [四 8月 22 10:12:09 2024] [1439660]     0 1439660  1702258   135715  1871872     3968             0 java
   [四 8月 22 10:12:09 2024] oom-kill:constraint=CONSTRAINT_MEMCG,nodemask=(null),cpuset=docker-xxxxxxx.scope,mems_allowed=0,oom_memcg=/system.slice/docker-xxxxxxx.scope,task_memcg=/system.slice/docker-xxxxxxx.scope,task=java,pid=1439660,uid=0
   [四 8月 22 10:12:09 2024] Memory cgroup out of memory: Killed process 1439660 (java) total-vm:6809032kB, anon-rss:504204kB, file-rss:38656kB, shmem-rss:0kB, UID:0 pgtables:1828kB oom_score_adj:0
   ```
   


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

Posted by "shaofengshi (via GitHub)" <gi...@apache.org>.
shaofengshi commented on PR #66:
URL: https://github.com/apache/gravitino-playground/pull/66#issuecomment-2306664491

   Hello Junbo, several questions:
   1)  In which case you will get the OOM error?
   2) I see you add a "gravitino.env.sh" file, but didn't see where it will be called. Will it be executed automatically? 
   3) I see you increase the docker memory from 500m to 1G, is that mandatory? Can we just keep the origin value?
   
   Thanks for your PR!


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw closed pull request #66: [Bug] Avoid OOM (Out of Memory) for Playground-gravitino
URL: https://github.com/apache/gravitino-playground/pull/66


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw commented on PR #66:
URL: https://github.com/apache/gravitino-playground/pull/66#issuecomment-2309499660

   > 1. In which case you will get the OOM error?
   
   Use gravitino-playground default config and refresh the gravitino homepage several times, I couldn't reproduce this time.
   I will close this pr.


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

Posted by "shaofengshi (via GitHub)" <gi...@apache.org>.
shaofengshi commented on PR #66:
URL: https://github.com/apache/gravitino-playground/pull/66#issuecomment-2311812902

   > > 1. In which case you will get the OOM error?
   > 
   > Use gravitino-playground default config and refresh the gravitino homepage several times, I couldn't reproduce this time. I will close this pr.
   
   Thank you for the PR; I will test it to see whether I can reproduce it.


-- 
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: commits-unsubscribe@gravitino.apache.org

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


Re: [PR] [Bug] Avoid OOM (Out of Memory) for Playground-gravitino [gravitino-playground]

Posted by "beryllw (via GitHub)" <gi...@apache.org>.
beryllw commented on PR #66:
URL: https://github.com/apache/gravitino-playground/pull/66#issuecomment-2309120171

   > 1. In which case you will get the OOM error?
   
   Use gravitino-playground default config and refresh the gravitino homepage several times.  
   Gravitino server default memory is 1g and docker container memory is 500m.
   
   > 2. I see you add a "gravitino.env.sh" file, but didn't see where it will be called. Will it be executed automatically?
   
   Yes, copy it to the conf directory and it will be executed automatically.
   
   > 3. I see you increase the docker memory from 500m to 1G, is that mandatory? Can we just keep the origin value?
   
   Not.The docker memory is 500m, and we set the Gravitino server to 384m?
   ```
   export GRAVITINO_MEM=-Xms384m -Xmx384m -XX:MaxMetaspaceSize=128m
   ```
   Thanks.
   
   
   


-- 
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: commits-unsubscribe@gravitino.apache.org

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