Mrhs121 opened a new issue, #17848:
URL: https://github.com/apache/dolphinscheduler/issues/17848

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   Incorrect JVM Arguments Placement in Java Command Builder Causes JVM Options 
to be Passed as Program Arguments.
   
   
   For example, the following java task:
   <img width="651" height="446" alt="Image" 
src="https://github.com/user-attachments/assets/9a2b9277-55d1-43fd-aa47-586ae9148eac";
 />
   ```
   package com.example;
   public class Main {
       public static void main(String[] args) {
           if (args.length != 2) {
               System.err.println("用法: java -jar demo.jar <arg1> <arg2>");
               System.exit(1);
           }
           String a = args[0];
           String b = args[1];
           System.out.println("收到参数1: " + a);
           System.out.println("收到参数2: " + b);
   
       }
   }
   ```
   
   <img width="1100" height="144" alt="Image" 
src="https://github.com/user-attachments/assets/2d3d94d7-c508-4f13-9fe1-6be83e6994ce";
 />
   
   ### What you expected to happen
   
   Make the jvm parameters take effect properly
   
   ### How to reproduce
   
   Refer to the description above
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   dev
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to