Photon not responding

Janidu
edited November 2011 in Photon Server
Hi,

I am using photon with Nhibernate mapping to connect to a MySql Database. Sometimes ( mostly if done 3 or 4 times) when I do a critical change to the NHibernate code, such as changing session.update() to session.Save(), the photon instance log gives the following and stops responding. But, once I restart the whole machine, it works fine again. Any idea why is this happening. Thank you!

212: 19:51:50.947 - Service is running...
212: 19:53:08.997 - Server shutting down...
212: 19:53:08.997 - Shutting down ENet host...
212: 19:53:08.997 - Disconnecting all peers...
212: 19:53:08.997 - Shutting down socket servers...
212: 19:53:08.998 - Shutting down ENet thread pool...
212: 19:53:08.998 - Shutting down TCP inactivity timers...
212: 19:53:08.998 - Shutting down business logic thread pool...
212: 19:53:08.998 - Shutting down I/O thread pool...
212: 19:53:08.999 - Flushing ENET buffer allocator...
212: 19:53:09.000 - Flushing TCP buffer allocator...
212: 19:53:09.000 - Flushing stream socket allocator...
212: 19:53:09.001 - Flushing datagram socket allocator...
212: 19:53:09.002 - Destroying ENet thread pool
212: 19:53:09.002 - Destroying TCP inactivity timer
212: 19:53:09.002 - Destroying Business logic thread pool
212: 19:53:09.002 - Destroying servers
212: 19:53:09.002 - Destroying ENet host
212: 19:53:09.002 - Destroying CLR dispatcher
212: 19:53:09.002 - Destroying CLR applications
5044: 19:53:09.036 - CManagedHost::OnDomainUnload() - 7
212: 19:53:09.061 - CManagedHost::OnCLRDisabled()
5044: 19:53:09.065 - CManagedHost::OnStackOverflow()

Comments

  • Can you please tell us, which version of the Photon server you are using?
  • I am using version 2.6.11
  • The interesting part is the StackOverflow, which could be caused by infinite recursion or a number of other bugs. I fear It's hard to analyze.

    In Photon 2, there is no way to catch the CManagedHost::OnStackOverflow(). Photon 3 has extended handling of CLR exceptions and should help a lot to analyze this. I hope you can consider an update?