On Jan 20, 2016, at 3:25 PM, Cyrus Daboo <cdaboo@apple.com> wrote:
Hi Jacques,
--On January 19, 2016 at 10:53:14 AM -0600 Jacques Distler <distler@golem.ph.utexas.edu> wrote:
Here is the error.log, with DefaultLogLevel set to "debug". As you can see, after the database checks, nothing happens ... till I kill the server.
When it hangs what processes do you see running? There should be at least one python process and some postgres ones. Can you tell if the python process is idle or consuming CPU?
Here are the processes initiated when the CalendarServer starts up (PostgreSQL is already running): PID TTY TIME CMD 70038 ttys000 0:01.85 CalendarServer 7.0 [Combined] 70135 ttys000 0:00.02 /usr/local/bin/memcached -U 0 -s /var/run/caldav/memcache.sock -u _calendar 70136 ?? 0:00.01 postgres: caldav caldav 127.0.0.1(56199) idle There's a database connection, about which "lsof -i" reports: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME python2.7 70038 root 9u IPv4 0x22e34989d8c573db 0t0 TCP localhost:56199->localhost:postgresql (ESTABLISHED) That's the only TCP/IP connection the CalendarServer makes (in particular, it HAS NOT started a listener on port 8443, as it should). top says that the none of the three processes is consuming any CPU: PID COMMAND %CPU TIME #TH #WQ #PORT #MREGS MEM RPRVT PURG CMPR VPRVT VSIZE PGRP PPID STATE UID FAULTS COW MSGS MSGR 70038 python2.7 0.0 00:01.84 2 0 20 386 80M 80M 0B 0B 130M 2498M 70034 70034 sleeping 0 42899 2524 72 30 70135 memcached 0.0 00:00.02 6 0 24 47 780K 612K 0B 0B 31M 2399M 70034 70038 sleeping 93 956 270 34 12 70136 postgres 0.0 00:00.00 1 0 7 61 2512K 1172K 0B 0B 25M 2587M 70136 124 sleeping 252 1369 61 8 4