title: Java, Spring, Tomcat, hangs at "INFO: Initializing Spring root WebApplicationContext", I think I changed the allowed memory heap for my entire system
body: <p>I was playing around with the Java memory heap allocation and I think I did something that set it not just for any specific tomcat folder but for the entire system as I can't run my application in Spring or with a custom tomcat folder that I had been also using for testing. When I try to run the application, it just hangs at "INFO: Initializing Spring root WebApplicationContext".</p>
  
  <p>I am not fully clear on how I could have set this on the Linux command line by doing something like <code>"export CATALINA_OPTS="-Xms2000m -Xmx4500m"</code> or <code>"JAVA_OPTS="-Xms2000m -Xmx4500m -XX:MaxPermSize=4500m"</code></p>
  
  <p>I think I accidentally put the settings I had meant for my cloud server (which has a higher amount of memory) so I gave it more memory allocation than my entire system has.</p>
  
  <p>I would appreciate any help if anyone can let me know if it is possible I did this and if this could be causing the issue and how I can get an output from my system as to the current allocation so I can check / change it, I have tried <code>"export CATALINA_OPTS="-Xms2000m -Xmx4500m"</code> but it still won't work for me.</p>
  
  <p>I would like to restore everything to default settings. I normally set the memory heap allocation in the /bin/startup.sh file in the tomcat folder but I had forgotten this, I think, and was experimenting with things on the command line.</p>
  
  <p>Thanks</p>