Open humengyu2012 opened 1 year ago
I see you are trying to attach a java agent profiler via the environment variable. You can do so by specifying the lib in a dedicated env var ALLUXIO_WORKER_ATTACH_OPTS
, see the documentation here https://docs.alluxio.io/os/user/stable/en/administration/Troubleshooting.html#debugging-alluxio-processes
Also see related discussion here https://github.com/Alluxio/alluxio/issues/15168#issuecomment-1072641897
The monitor env vars were introduced in https://github.com/Alluxio/alluxio/pull/13576 to address a similar issue. The PR was mostly a workaround which removes JDWP specific options. I am not sure why ALLUXIO_WORKER_MONITOR_JAVA_OPTS
must extend from ALLUXIO_WORKER_JAVA_OPTS
, but from the context of #13576 I guess is that it's mostly aimed to stay backward compatible.
Judging from the contexts, I'd say ALLUXIO_WORKER_MONITOR_JAVA_OPTS
should not duplicate ALLUXIO_WORKER_JAVA_OPTS
and instead should have a different set of defaults. @humengyu2012 I'd really appreciate it if you can come up with a fix PR and test if the a dedicated set of defaults for the monitor should be appropriate.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.
Alluxio Version: 2.9.0
Describe the bug I added prometheus javaagent in alluxio-env.sh:
when I start worker, the exception is thrown:
To Reproduce add the following env in alluxio-env.sh and run worker:
Are you planning to fix it Please indicate if you are already working on a PR.
Additional context Why ALLUXIO_WORKER_MONITOR_JAVA_OPTS extends ALLUXIO_WORKER_JAVA_OPTS? I think it is unnecessary because worker could use a lot of memory(32G), but the monitor just need 4G or less memory. If I set
-Xms16G -Xmx32G
in ALLUXIO_WORKER_JAVA_OPTS that means monitor will run with-Xms16G -Xmx32G
.