o3de / o3de

Open 3D Engine (O3DE) is an Apache 2.0-licensed multi-platform 3D engine that enables developers and content creators to build AAA games, cinema-quality 3D worlds, and high-fidelity simulations without any fees or commercial obligations.
https://o3de.org
Other
7.67k stars 2.18k forks source link

Core dump size limit for Linux #9439

Open Black-Drama opened 2 years ago

Black-Drama commented 2 years ago

There is a operation which modify limit for core dump size on Linux.Under normal circumstances, only root user allowed to execute this operation, if we wanna run engine or application by business user, how can avoid this restriction? We have tried to modify limit to unlimited in /etc/security/limits.conf, bool IncreaseMaxToInfinity(rlimit& limit) { if (limit.rlim_max != RLIM_INFINITY) { limit.rlim_max = RLIM_INFINITY; return true; } return false; } it worked, but are there any better way to achieve this? Or another way of thinking, do we really need to set it?

byrcolin commented 2 years ago

I think this is the only way to do it as it is a system issue, however we should do some due diligence and research it a bit and see if there isn't a better way to do it.