Solr
  1. Solr
  2. SOLR-6486

solr start script can have a debug flag option

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10.2, 5.0
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      normally I would add this line to my java -jar start.jar
      -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983

      the script should take the whole string or assume the debug port to be solrPort+10000 (if all I pass is debug=true) or if debug="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983) use it verbatim

      1. SOLR-6486.patch
        11 kB
        Timothy Potter

        Activity

        Hide
        Noble Paul added a comment -

        instead of a specific flag for debug , lets have a catch all param and users can use it anyway they want

        Show
        Noble Paul added a comment - instead of a specific flag for debug , lets have a catch all param and users can use it anyway they want
        Hide
        Timothy Potter added a comment -

        Went with -a (for additional options); example:

        bin/solr start -a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983"
        

        In most cases, you'll need to wrap the value for -a in double-quotes so I've included that as a tip in the usage.

        This approach allows the user to pass additional parameters to the JVM when starting Solr, such as Noble's example of setting Java debug args.

        Patch tested on Mac and Windows Server 2012

        Show
        Timothy Potter added a comment - Went with -a (for additional options); example: bin/solr start -a "-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983" In most cases, you'll need to wrap the value for -a in double-quotes so I've included that as a tip in the usage. This approach allows the user to pass additional parameters to the JVM when starting Solr, such as Noble's example of setting Java debug args. Patch tested on Mac and Windows Server 2012
        Hide
        ASF subversion and git services added a comment -

        Commit 1626833 from Timothy Potter in branch 'dev/trunk'
        [ https://svn.apache.org/r1626833 ]

        SOLR-6486: solr start script can have a debug flag option; use -a to set arbitrary options.

        Show
        ASF subversion and git services added a comment - Commit 1626833 from Timothy Potter in branch 'dev/trunk' [ https://svn.apache.org/r1626833 ] SOLR-6486 : solr start script can have a debug flag option; use -a to set arbitrary options.
        Hide
        ASF subversion and git services added a comment -

        Commit 1626837 from Timothy Potter in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1626837 ]

        SOLR-6486: solr start script can have a debug flag option; use -a to set arbitrary options.

        Show
        ASF subversion and git services added a comment - Commit 1626837 from Timothy Potter in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1626837 ] SOLR-6486 : solr start script can have a debug flag option; use -a to set arbitrary options.
        Hide
        ASF subversion and git services added a comment -

        Commit 1631528 from Timothy Potter in branch 'dev/branches/lucene_solr_4_10'
        [ https://svn.apache.org/r1631528 ]

        SOLR-6509, SOLR-6486, SOLR-6549, SOLR-6529: backport recent fixes / improvements to the bin/solr scripts for inclusion in 4.10.2 release.

        Show
        ASF subversion and git services added a comment - Commit 1631528 from Timothy Potter in branch 'dev/branches/lucene_solr_4_10' [ https://svn.apache.org/r1631528 ] SOLR-6509 , SOLR-6486 , SOLR-6549 , SOLR-6529 : backport recent fixes / improvements to the bin/solr scripts for inclusion in 4.10.2 release.

          People

          • Assignee:
            Timothy Potter
            Reporter:
            Noble Paul
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development