-
Notifications
You must be signed in to change notification settings - Fork 121
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
MAPDL server connection terminated when running on linux container #3070
Comments
Code that errors: rstp_path = os.path.join(pymapdl_cur_dir, 'file')
mapdl.post1()
mapdl.file(rstp_path, "rstp")
print(mapdl.post_processing)
mapdl.set(1, 21)
mapdl.post_processing.plot_nodal_displacement(
scalar_bar_args={"title": "Total displacement\n Substep 21"}
)
mapdl.set(1, 22)
mapdl.post_processing.plot_nodal_displacement(
scalar_bar_args={"title": "Total displacement\n Substep 22"}
) Output:
Stack trace:
|
Just to make sure... you said the container has allocated 64 GB of ram? and 8 cores? I have seen issues with MAPDL containers when they run out of memory, in that case the OS kill the MAPDL process very quickly. Check pymapdl/.github/workflows/ci.yml Line 613 in 9580a45
You might want to impose some memory limits to MAPDL. This limits should be way lower than the docker container memory specifications. Check: https://www.padtinc.com/2012/02/29/starting-ansys-products-from-the-command-line/ Other interesting references: https://docs.docker.com/engine/containers/resource_constraints/
|
Thanks German. @prateek-shukla @yingjinsun this issue is from Notebook terminating mapdl on large simulations. Can either of you confirm the ram and cpu set for mapdl and if we can set this option? |
🤓 Before submitting the issue
pip install --upgrade --upgrade-strategy eager ansys-mapdl-core
in your activated virtual environment.🔍 Description of the bug
I am importing a cdb (brake aqueal problem in PyMAPDL help doc 1.6 Analysis and solution controls are highlighted: linear non-prestressed modal, partial nonlinear perturbed modal, and full nonlinear perturbed modal.)
Towards the end of the script the connection terminates and we are unable to finish the simulation.
This is running on Ansys Notebook (jupyter backend for execution) and the mapdl product is in a linux container with 8 cores and 64 GB of memory.
File to reproduce, please contact me to get Notebook access if preferred.
mapdl_ex_3 2.zip
🕵️ Steps To Reproduce
💻 Which Operating System are you using?
Linux
🐍 Which Python version are you using?
3.9
💾 Which MAPDL version are you using?
2024R1
📝 PyMAPDL Report
Show the Report!
📝 Installed packages
Show the installed packages!
📝 Logger output file
Show the logger output file.
The text was updated successfully, but these errors were encountered: