1 Reply Latest reply on Dec 10, 2012 8:43 AM by rush_pawan

    How do I run CRX in debug mode with CQ5 , CRX version is 1.0.1

    manojbharal

      I tried below commands But Attached Debug option under Debug menu option is still disabled.

       

       

      Option 1 :

       

      C:\author>java -debug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_sock
      et,server=y,suspend=n,address=30303 -jar cq-author-4502.jar
      Listening for transport dt_socket at address: 30303
      Loading quickstart properties: default
      Loading quickstart properties: instance
      Low-memory action set to fork
      Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume
      nts=[-Xmx1024m, -XX:MaxPermSize=256m]
      The JVM reports a heap size of 1781 MB, meets our expectation of 1024 MB +/- 20
      **** WARNING: insufficent PermGen memory ***************************************

      The JVM MBean:PS Perm Gen reports 82 MB but we recommend at least 256 MB +/- 20
      Use your JVM's PermGen size option (like -XX:MaxPermSize=256M) to set that size.

      Will fork a JVM to get enough memory.
      ********************************************************************************

      Available memory below specified limits and low-memory action set to fork, will
      fork to get enough memory
      Preparing to fork JVM, OS name=Windows 7, isWindows=true
      Forking JVM: [C:\Program Files\Java\jre6\bin\java.exe, -Xmx1024m, -XX:MaxPermSiz
      e=256m, -jar, C:/author/cq-author-4502.jar, -nofork, -pt, CHILD]
      Loading quickstart properties: default
      Loading quickstart properties: instance
      Low-memory action set to fork
      Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume
      nts=[-Xmx1024m, -XX:MaxPermSize=256m]
      **** WARNING: insufficent heap memory ******************************************

      The JVM reports 910 MB but we recommend at least 1024 MB +/- 20
      Use your JVM's heap size option (like -Xmx1024M) to set that size.
      Will fork a JVM to get enough memory.
      ********************************************************************************

      The JVM MBean:PS Perm Gen reports a maximum size of 256 MB, meets our expectatio
      n of 256 MB +/- 20
      Available memory below specified limits and low-memory action set to fork, will
      fork to get enough memory
      Not forking JVM as -nofork option is set
      Setting properties from filename 'C:/author/cq-author-4502.jar'
      Property '-quickstart.server.port' set to '4502' from filename cq-author-4502.ja
      r
      Property '-r' set to 'author' from filename cq-author-4502.jar
      Property '-r' is already set (author), ignoring new value (author) derived from
      filename
      System property 'sling.run.modes' set to 'author' by -r option
      Verbose option not active, closing stdin and redirecting stdout and stderr
      Redirecting stdout to C:\author\.\crx-quickstart\logs\stdout.log
      Redirecting stderr to C:\author\.\crx-quickstart\logs\stderr.log
      Press CTRL-C to shutdown the Quickstart server...

       

      Shutdown


      MAIN process: shutdown hook
      MAIN process: Exception in shutdown hook: java.io.IOException: The pipe is being
      closed
      MAIN process: Wrote shutdown string to child process, waiting for it to exit (ma
      x 5000 msec)
      Child process did not exit? Destroying it now.
      MAIN process: Child process exited.
      MAIN process: exiting
      Forked JVM process exited with exit code 1
      Main JVM process exiting

       

      OPtion 2:

       

      C:\author>java -Xmx512m -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=3
      0303,suspend=n -jar cq-author-4502.jar
      Listening for transport dt_socket at address: 30303
      Loading quickstart properties: default
      Loading quickstart properties: instance
      Low-memory action set to fork
      Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume
      nts=[-Xmx1024m, -XX:MaxPermSize=256m]
      **** WARNING: insufficent heap memory ******************************************

      The JVM reports 455 MB but we recommend at least 1024 MB +/- 20
      Use your JVM's heap size option (like -Xmx1024M) to set that size.
      Will fork a JVM to get enough memory.
      ********************************************************************************

      **** WARNING: insufficent PermGen memory ***************************************

      The JVM MBean:PS Perm Gen reports 82 MB but we recommend at least 256 MB +/- 20
      Use your JVM's PermGen size option (like -XX:MaxPermSize=256M) to set that size.

      Will fork a JVM to get enough memory.
      ********************************************************************************

      Available memory below specified limits and low-memory action set to fork, will
      fork to get enough memory
      Preparing to fork JVM, OS name=Windows 7, isWindows=true
      Forking JVM: [C:\Program Files\Java\jre6\bin\java.exe, -Xmx1024m, -XX:MaxPermSiz
      e=256m, -jar, C:/author/cq-author-4502.jar, -nofork, -pt, CHILD]
      Loading quickstart properties: default
      Loading quickstart properties: instance
      Low-memory action set to fork
      Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork argume
      nts=[-Xmx1024m, -XX:MaxPermSize=256m]
      **** WARNING: insufficent heap memory ******************************************

      The JVM reports 910 MB but we recommend at least 1024 MB +/- 20
      Use your JVM's heap size option (like -Xmx1024M) to set that size.
      Will fork a JVM to get enough memory.
      ********************************************************************************

      The JVM MBean:PS Perm Gen reports a maximum size of 256 MB, meets our expectatio
      n of 256 MB +/- 20
      Available memory below specified limits and low-memory action set to fork, will
      fork to get enough memory
      Not forking JVM as -nofork option is set
      Setting properties from filename 'C:/author/cq-author-4502.jar'
      Property '-quickstart.server.port' set to '4502' from filename cq-author-4502.ja
      r
      Property '-r' set to 'author' from filename cq-author-4502.jar
      Property '-r' is already set (author), ignoring new value (author) derived from
      filename
      System property 'sling.run.modes' set to 'author' by -r option
      Verbose option not active, closing stdin and redirecting stdout and stderr
      Redirecting stdout to C:\author\.\crx-quickstart\logs\stdout.log
      Redirecting stderr to C:\author\.\crx-quickstart\logs\stderr.log
      Press CTRL-C to shutdown the Quickstart server...