Jenkins agent (maxLocks: 100)

we use Kubernetes for our Jenkins agent and hitting a limit of 100 maximum agents with the following error. I have tried to increase it via java argument in the startup:

java -Djava.util.logging.config.file=/var/jenkins_home/
$ cat /var/jenkins_home/

But it did not work. Our jenkins version is: Jenkins 2.346.1

Here is the error:
INFO: Both error and output logs will be printed to /home/jenkins/agent/remoting
Exception in thread “main” Couldn’t get lock for /home/jenkins/agent/remoting/logs/remoting.log, maxLocks: 100
at java.util.logging.FileHandler.openFiles(
at java.util.logging.FileHandler.(
at org.jenkinsci.remoting.engine.WorkDirManager.setupLogging(