title: deploying YouTrack6 on OpenShift
body: <p>Some time ago, I've deployed a YouTrack5 instance on OpenShift, using <a href="http://toub.es/2013/07/15/youtrack-openshift-quick-and-simple" rel="nofollow">this excellent tutorial</a>. It works fine and smoothly. </p>
  
  <p>Now, I want to install YouTrack6. Unfortunately, the same method can't be used for it, as since version 6 YouTrack .war file is <a href="http://forum.jetbrains.com/thread/YouTrack-1803" rel="nofollow">no longer available</a>.</p>
  
  <p>So, I've tried to deploy YouTrack6 jar via a DIY cart, which should be ok, as the jar can be run standalone. </p>
  
  <p>This is the command line that I've provided in the 
  <code>.openshift/action_hooks/start</code> script:</p>
  
  <p><code>nohup /usr/lib/jvm/java-1.7.0/bin/java -Xmx1g -XX:MaxPermSize=250m -Djetty.home=$OPENSHIFT_DATA_DIR -Duser.home=$OPENSHIFT_DATA_DIR -Ddatabase.location=${OPENSHIFT_DATA_DIR}teamsysdata -Djava.awt.headless=true -jar ${OPENSHIFT_REPO_DIR}youtrack-6.0.12463.jar ${OPENSHIFT_DIY_IP}:${OPENSHIFT_DIY_PORT} &amp;</code></p>
  
  <p>Indeed, it works, the application is deployed and started - <strong>BUT</strong>: it is very unstable, looks like it crashes and caused to restart after just every few actions.</p>
  
  <p>From the logs, I couldn't understand where the problem lies, looks like on YouTrack's side everything's ok.</p>
  
  <p>My question is - what can be the problem that causes this unstable behavior, and is there any way to work around it (maybe by changing the command line flags, etc.)?</p>