[sr-dev] git:master:f057e844: core: info log at startup with number of precesses, pkg and shm sizes

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 18 10:14:34 CEST 2018


Module: kamailio
Branch: master
Commit: f057e844ba407333ad8d876daa1f6ee49bd41c86
URL: https://github.com/kamailio/kamailio/commit/f057e844ba407333ad8d876daa1f6ee49bd41c86

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-18T10:13:08+02:00

core: info log at startup with number of precesses, pkg and shm sizes

- useful to see if needed to troubleshoot by analyzing log messages

---

Modified: src/main.c

---

Diff:  https://github.com/kamailio/kamailio/commit/f057e844ba407333ad8d876daa1f6ee49bd41c86.diff
Patch: https://github.com/kamailio/kamailio/commit/f057e844ba407333ad8d876daa1f6ee49bd41c86.patch

---

diff --git a/src/main.c b/src/main.c
index 2062f4a745..b7e9fdb58a 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2615,8 +2615,8 @@ int main(int argc, char** argv)
 	 * function being called before this point may rely on the
 	 * number of processes !
 	 */
-	LM_DBG("Expect (at least) %d kamailio processes in your process list\n",
-			get_max_procs());
+	LM_INFO("processes (at least): %d - shm size: %lu - pkg size: %lu\n",
+			get_max_procs(), shm_mem_size, pkg_mem_size);
 
 #if defined USE_DNS_CACHE && defined USE_DNS_CACHE_STATS
 	if (init_dns_cache_stats(get_max_procs())<0){




More information about the sr-dev mailing list