错误:此脚本不支持-Xdebug

时间:2018-02-17 08:59:35

标签: solr solr6

    0.100000000000000111E-02   -0.526254956249307482-311 0.764784798622131334E+00    0.262873337864875811E+01    0.208378931879997231E-01    0.833944082260131836E+00   

    0.100000000000000111E-02   -0.526254956199900917-311    0.295833469629287749E+00    0.452671760320663452E+01    0.251516385376453384E-01    0.114372291564941397E+01   

    0.100000000000000111E-02   -0.526254956199900917-311    0.352831211090087915E+00    0.303885749578475917E+01    0.219180066883564000E-01    0.949515032768249556E+00   

错误:此脚本不支持-Xdebug

当我在调试模式下运行solr6.6时,它给了我错误。 谁能告诉我如何在调试模式下运行solr?

1 个答案:

答案 0 :(得分:0)

这个确切的用例在脚本中的示例中给出:

./solr start -c -m 1g -z localhost:2181 -a \"-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1044\""

-a            Additional parameters to pass to the JVM when starting Solr, such as to setup
              Java debug options. For example, to enable a Java debugger to attach to the Solr JVM
              you could pass: -a \"-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=18983\"
              In most cases, you should wrap the additional parameters in double quotes.