telemenar commented on issue #710: URL: https://github.com/apache/maven-mvnd/issues/710#issuecomment-2852086694
Some testing that I did locally, initial setup (I'd previously done work to raise the limits on max files): ``` $ echo "Soft Files Limit"; ulimit -Sn; echo "Hard Files Limit"; ulimit -Hn Soft Files Limit 245760 Hard Files Limit 245760 $ cat ~/.mavenrc MAVEN_OPTS="${MAVEN_OPTS} -XX:-MaxFDLimit" $ cat pom.xml <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.example.test</groupId> <artifactId>test-ulimit</artifactId> <version>0.1</version> <packaging>pom</packaging> <name>Ulimit Check</name> <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>exec-maven-plugin</artifactId> <version>3.4.1</version> <executions> <execution> <!-- Run our version calculation script --> <id>set_ulimits</id> <goals> <goal>exec</goal> </goals> <phase>validate</phase> <configuration> <executable>bash</executable> <arguments> <argument>-c</argument> <argument>echo "Soft Files Limit"; ulimit -Sn; echo "Hard Files Limit"; ulimit -Hn</argument> </arguments> </configuration> </execution> </executions> </plugin> </plugins> </build> </project> $ mvnd.sh -version Apache Maven Daemon (mvnd) 1.0.2 darwin-aarch64 native client (cccc1ec8a5b741c62b29f9fb04d37b1678a029bb) Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jni.osx.OsXNativePty Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d260186937) Maven home: /Users/$USER/tools/mvn Java version: 21.0.4, vendor: Eclipse Adoptium, runtime: /Library/Java/JavaVirtualMachines/temurin-aarch64-21.0.4.jdk/Contents/Home Default locale: en_US, platform encoding: UTF-8 OS name: "mac os x", version: "15.1.1", arch: "aarch64", family: "mac" ``` Then running this 3 different ways: ``` $ MVND_CLIENT=jvm mvnd.sh validate [INFO] Processing build on daemon 68d1439f [INFO] Scanning for projects... [INFO] BuildTimeEventSpy is registered. [INFO] [INFO] Using the SmartBuilder implementation with a thread count of 24 [INFO] [INFO] --------------------< org.example.test:test-ulimit >-------------------- [INFO] Building Ulimit Check 0.1 [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- exec:3.4.1:exec (set_ulimits) @ test-ulimit --- [INFO] [stdout] Soft Files Limit [INFO] [stdout] 245760 [INFO] [stdout] Hard Files Limit [INFO] [stdout] 245760 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.309 s (Wall Clock) [INFO] Finished at: 2025-05-05T11:56:02-07:00 [INFO] ------------------------------------------------------------------------ $ mvnd.sh --stop Stopping 1 running daemons $ MVND_CLIENT=native mvnd.sh validate [INFO] Processing build on daemon b23b5b95 [INFO] Scanning for projects... [INFO] BuildTimeEventSpy is registered. [INFO] [INFO] Using the SmartBuilder implementation with a thread count of 24 [INFO] [INFO] --------------------< org.example.test:test-ulimit >-------------------- [INFO] Building Ulimit Check 0.1 [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- exec:3.4.1:exec (set_ulimits) @ test-ulimit --- [INFO] [stdout] Soft Files Limit [INFO] [stdout] 10240 [INFO] [stdout] Hard Files Limit [INFO] [stdout] 245760 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.296 s (Wall Clock) [INFO] Finished at: 2025-05-05T11:56:18-07:00 [INFO] ------------------------------------------------------------------------ $ mvn validate [INFO] Scanning for projects... [INFO] [INFO] --------------------< org.example.test:test-ulimit >-------------------- [INFO] Building Ulimit Check 0.1 [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- exec:3.4.1:exec (set_ulimits) @ test-ulimit --- Soft Files Limit 245760 Hard Files Limit 245760 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.263 s [INFO] Finished at: 2025-05-05T11:56:41-07:00 [INFO] ------------------------------------------------------------------------ ``` Then if I delete that `.mavenrc` the all of the different runs all behave the same way: ``` $ rm ~/.mavenrc $ mvn validate [INFO] Scanning for projects... [INFO] [INFO] --------------------< org.example.test:test-ulimit >-------------------- [INFO] Building Ulimit Check 0.1 [INFO] from pom.xml [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- exec:3.4.1:exec (set_ulimits) @ test-ulimit --- Soft Files Limit 10240 Hard Files Limit 245760 [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.267 s [INFO] Finished at: 2025-05-05T12:12:36-07:00 [INFO] ------------------------------------------------------------------------ ``` -- 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-unsubscr...@maven.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org