Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Configuring Spark Executor for GC Logging in the Same Directory as Standard Output #161

Open
huangzhir opened this issue Nov 24, 2023 · 2 comments
Labels
question Further information is requested

Comments

@huangzhir
Copy link

Contact Details

No response

What would you like to ask or discuss?

I have a question regarding memory waste diagnosis, which relies on the executor's GC logs. However, by default, Spark's executor logs do not include this. How should I add the parameter "spark.executor.extraJavaOptions=-verbose:gc -XX:+PrintGCDetails -Xloggc:gc.log"? How can I specify that the gc.log should be in the same directory as the standard output? This is necessary so that the YARN history server can collect the logs.

@huangzhir huangzhir added the question Further information is requested label Nov 24, 2023
@nilnon
Copy link
Collaborator

nilnon commented Nov 24, 2023

We can add this parameter -Xloggc:<LOG_DIR>/gc.log.

@huangzhir
Copy link
Author

Thank you for the suggestion. This approach is indeed viable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants