Solr now starts up fine in Tomcat with both JMX and ReplicationHandler enabled if I construct my working copy as follows:
download solr-r815830 reverse merge r815587 ("SOLR-1427: fixed registry MBean issue") apply 1427.afterlatch.patch I haven't tried applying 1427.afterlatch.patch to the svn head, but I assume the results would be the same. 2009/9/20 Chris Hostetter <hossman_luc...@fucit.org>: > > : instance, which is based on Solr SVN r815830. This patch did not seem > : to solve the hang problem; once I reenabled JMX, then the process > : would hang at the same spot, i.e. right after > > Yeah, I believe the "hang" is really orthoginal to the SearchComponents > issue and seems to be because of the types of Statistics > ReplicationHandler wants to expose and the way certain JMX implementaions > deal with a newly registered MBean -- the changes made in SOLR-1427 (which > yonik has since reverted) just exposed this problem by registering hte > MBeans at an inopportune time. > > I'd apprecaite it if anyone who observed this problem in their > version of Java could try out this patch... > > https://issues.apache.org/jira/secure/attachment/12420151/SOLR-1427.afterlatch.patch > > ...with both the ReplicationHandler and JMX turned on. The patch can be > applied to the current trunk (where yonik reverted the previous code that > caused the hang) > > If things still lock up even with that patch, a full threaddump would be > much apprecaited. > > > -Hoss > >