title: Glassfish server unable to run
body: <p>During working on JSP project, an appear sometime because of memory space:
  Java heap space ..</p>
  
  <p>i searched for this error and a solution was founded, which it's :
  <a href="http://spaquet.blogspot.com/2006/07/liferay-glassfish-part-ii-configuring.html" rel="nofollow">Configuring Glassfish</a></p>
  
  <p>I did as they explained, but i changeed the value that they set to larger values, in explanation they set XX:MaxPermSize to 256m , but i set it to 1024 !
  and another parameter in same page was, as i remember xm512 or something like that , i changed it to 2048.</p>
  
  <p>I restarted netbeans, then Glassfish unable to run!
  An error appear at first run , may talk about the space 2048 ! , later, this error appear:</p>
  
  <pre><code>Starting GlassFish Server
  GlassFish Server is running.
  In-place deployment at C:\Users\Belal\Documents\NetBeansProjects\Search Engine\build\web
  GlassFish Server, deploy, Connection refused: connect, false
  C:\Users\Belal\Documents\NetBeansProjects\Search Engine\nbproject\build-impl.xml:1058: The module has not been deployed.
  See the server log for details.
  BUILD FAILED (total time: 5 seconds)
  </code></pre>