You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "dweiss (via GitHub)" <gi...@apache.org> on 2024/12/31 08:10:50 UTC

[I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

dweiss opened a new issue, #14090:
URL: https://github.com/apache/lucene/issues/14090

   ### Description
   
   I've seen this a few times in jenkins and now github [1]:
   [smoke-tester-logs-jdk-21.zip](https://github.com/user-attachments/files/18280106/smoke-tester-logs-jdk-21.zip)
   
   Perhaps we should increase the reserved code cache size? There is a lot going on in the build (groovy); maybe it's really not fitting the defaults for some reason.
   
   https://github.com/apache/lucene/actions/runs/12554562223
   
   ### Version and environment details
   
   _No response_


-- 
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: issues-unsubscribe@lucene.apache.org.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2567392854

   I've increased the default to 384m, let's see what happens on CIs.


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2568078503

   Yep, good observation. For me, it's not the forced cpu count but the tiered-stop-at-level that causes this to decrease:
   ```
   > java -XX:+PrintFlagsFinal -Xmx1g -XX:TieredStopAtLevel=1 -XX:+UseParallelGC -XX:ActiveProcessorCount=1 --version 2>&1 | grep "ReservedCodeCacheSize"
       uintx ReservedCodeCacheSize                    = 50331648                               {pd product} {default}
   ```
   ```
   > java -XX:+PrintFlagsFinal  -XX:TieredStopAtLevel=1 --version 2>&1 | grep "ReservedCodeCacheSize"
       uintx ReservedCodeCacheSize                    = 50331648                               {pd product} {default}
   > java -XX:+PrintFlagsFinal   --version 2>&1 | grep "ReservedCodeCacheSize"
       uintx ReservedCodeCacheSize                    = 251658240                              {pd product} {ergonomic}
   ```
    
   I was fairly liberal with the setting... maybe I should correct it to, say ~256mb instead of the 384?


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "rmuir (via GitHub)" <gi...@apache.org>.
rmuir commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2567926622

   @dweiss thanks, I've been setting this one explicitly for java stuff at builds at work. 
   
   Problem is that this setting has an ergonomic default, based on how much cpus/ram it sees on build agent (and maybe influenced by cgroup limits if running in container, not sure). It seems to be too low for large java codebases.
   
   So I've just gotten into the habit to set it explicitly to a value needed for things to work correctly all the time and no more troubles.


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss closed issue #14090: VirtualMachineError: Out of space in CodeCache for adapters in gradle
URL: https://github.com/apache/lucene/issues/14090


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2568364154

   Applied to 10x and main. Closing this issue. We can tweak if we observe more anomalies.


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "rmuir (via GitHub)" <gi...@apache.org>.
rmuir commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2567935427

   i havent looked at the defaults, but we probably give their crazy ergonomic algorithms trouble by telling it to use 1 cpu (which is really necessary to do the way we do parallel tests).
   
   some of the java ergonomics seem to have logic such as: `if (ncpus == 1) // don't treat as "server-class", set lower values for X`, maybe leftover from 1995 :)
   


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org


Re: [I] VirtualMachineError: Out of space in CodeCache for adapters in gradle [lucene]

Posted by "dweiss (via GitHub)" <gi...@apache.org>.
dweiss commented on issue #14090:
URL: https://github.com/apache/lucene/issues/14090#issuecomment-2568361596

   I've lowered it to 256 MB. I think it's going to be fine. Thanks for pointing out the ergonomics affect this setting, Rob.


-- 
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: issues-unsubscribe@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org