Ask Reuben 58 - ulimits

Started by Reuben B., December 07, 2020, 01:18:19 AM

Previous topic - Next topic

Reuben B.


When running via Genero Application Server (GAS), the top of the dispatcher log and the proxy log on Linux and OSX based operating systems files will contain an entry similar to

Code (bash) Select
#Version: 1.0
#Date: 2020/11/27 11:58:43.507461
#Fields: time relative-time location process-id thread-id contexts event-type event-params
#Ulimits:
#   core file size     : 0 (unlimited)
#   data seg size      : unlimited (unlimited)
#   file size          : unlimited (unlimited)
#   max memory size    : unlimited (unlimited)
#   open files         : 1024 (unlimited)
#   stack size         : 8388608 (67104768)
#   cpu time           : unlimited (unlimited)
#   max user processes : 1024 (2128)
#   virtual memory     : unlimited (unlimited)


These numbers that are first shown are a capture of the Operating System ulimit values, and rumour has it they were added to the GAS logs by support personnel who were frustrated at continually running into support issues where these values on the operating system were too low.  Without writing them into the log file, we had no idea  of what the actual values used by the dispatcher and proxy process were.  By writing them in the log file when the process starts, we knew what limits were in place for that particular process and we can pinpoint an issue a lot quicker.

Read more about ulimits and which ones you typically encounter with a Genero application at https://4js.com/ask-reuben/ig-58/
Product Consultant (Asia Pacific)
Developer Relations Manager (Worldwide)
Author of https://4js.com/ask-reuben
Contributor to https://github.com/FourjsGenero

Richard H.

Interesting article.  Thanks for the info.