Code Monkey home page Code Monkey logo

Comments (16)

ibingdian avatar ibingdian commented on June 2, 2024

hs_err_pid17424.log

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

Have you tried increasing -Xss here:

jvmArgs("-Xss256k")
?

It says there was "free space=243k" in stack, however, it is hard to tell what is wrong here.
Have you tried Java 21 or a Java from a different vendor?

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

i modify jvmArgs("-Xss512k") in jmeter/src/dist/build.gradle.kts, but hava the same problem as above,
……
An error report file with more information is saved as:
D:\xxx\jmeter\bin\hs_err_pid20116.log
……

i change the jdk to Java 21(21.0.2), i meet the problem as below, It seems that I can only use java 17 ? :

10:17:08: Executing 'runGui'...

Starting Gradle Daemon...
Gradle Daemon started in 2 s 495 ms
Type-safe project accessors is an incubating feature.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':build-logic-commons:gradle-plugin'.

Failed to calculate the value of task ':build-logic-commons:gradle-plugin:compileJava' property 'javaCompiler'.
No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.

  • Try:

Learn more about toolchain auto-detection at https://docs.gradle.org/8.5/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.5/userguide/toolchains.html#sub:download_repositories.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@65b3a32e of type BuildFlowService.Parameters
A problem occurred configuring project ':build-logic-commons:gradle-plugin'.
> Failed to calculate the value of task ':build-logic-commons:gradle-plugin:compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.

  • Try:

Learn more about toolchain auto-detection at https://docs.gradle.org/8.5/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.5/userguide/toolchains.html#sub:download_repositories.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 28s
10:17:40: Execution finished 'runGui'.

the java version as below:
C:\Users\Administrator>java -version
java version "21.0.2" 2024-01-16 LTS
Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58)
Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing)

the jdk download link i used is :
https://download.oracle.com/java/17/latest/jdk-17_windows-x64_bin.zip
https://download.oracle.com/java/21/latest/jdk-21_windows-x64_bin.zip
the os is Windows 10
the idea is IntelliJ IDEA 2023.3.6

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

hs_err_pid20116.log

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

I forgot that Java version should be configured with parameters (see ./gradlew parameters)

For instance:

./gradlew runGui -PjdkTestVersion=21

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

It looks you hit https://bugs.openjdk.org/browse/JDK-8277299 here, so going with Java 21 or increasing the stack size from 256k to 1m would likely resolve the issue.

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

Thank you for answering my question.

in java 17, i set the stack size from 256k to 1m is ok, and after execute ./gradlew.bat runGui , the jmeter can open.

in java 21 , execute ./gradlew.bat runGui -PjdkTestVersion=21, hava error as below:

D:\xxx\jmeter> ./gradlew.bat runGui -PjdkTestVersion=21
Type-safe project accessors is an incubating feature.

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':build-logic-commons:gradle-plugin'.

Failed to calculate the value of task ':build-logic-commons:gradle-plugin:compileJava' property 'javaCompiler'.
No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.

  • Try:

Learn more about toolchain auto-detection at https://docs.gradle.org/8.5/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.5/userguide/toolchains.html#sub:download_repositories.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org.
==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Failed to query the value of property 'buildFlowServiceProperty'.

Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@2c02cbc8 of type BuildFlowService.Parameters
A problem occurred configuring project ':build-logic-commons:gradle-plugin'.
> Failed to calculate the value of task ':build-logic-commons:gradle-plugin:compileJava' property 'javaCompiler'.
> No matching toolchains found for requested specification: {languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
> No locally installed toolchains match and toolchain download repositories have not been configured.

  • Try:

Learn more about toolchain auto-detection at https://docs.gradle.org/8.5/userguide/toolchains.html#sec:auto_detection.
Learn more about toolchain repositories at https://docs.gradle.org/8.5/userguide/toolchains.html#sub:download_repositories.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Get more help at https://help.gradle.org.
==============================================================================

BUILD FAILED in 2s

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

i hava another question : jmeter freeze when open a jmx with a Big request param.
in the jmx, i have a httpsample , and it's request param is a big json ,about 600k, when load the file ,the jmeter hangs up.
how to solve the problem.

I don't want to use CSV to deliver the request param.

jmx_slow.zip

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

{languageVersion=17, vendor=any, implementation=vendor-specific} for WINDOWS on x86_64.
No locally installed toolchains match and toolchain download repositories have not been configured.

That means Gradle can't detect Java 17 on your machine.
By default JMeter uses Java 17 for the build, and you could use ./gradlew -PjdkBuildVersion=21 -PjdkTestVersion=21 runGui to use 21 for both build and test.

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

in jdk 21, i try ./gradlew.bat -PjdkBuildVersion=21 -PjdkTestVersion=21 runGui , but some error happen as front:
jdk21

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

when use ./gradlew.bat runGui , how to pass a jmx file path?

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

"jmeter freeze" is caused by bobbylight/RSyntaxTextArea#41:

A workaround is to disable line wrapping (see jsyntaxtextarea.linewrap in jmeter.properties)

"AWT-EventQueue-0" #36 [67591] prio=6 os_prio=31 cpu=155639,07ms elapsed=209,99s tid=0x000000013be47c00 nid=67591 runnable  [0x000000016ecdd000]
   java.lang.Thread.State: RUNNABLE
	at org.fife.ui.rsyntaxtextarea.TokenImpl.getWidthUpTo(TokenImpl.java:601)
	at org.fife.ui.rsyntaxtextarea.TokenUtils.getSubTokenList(TokenUtils.java:132)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.calculateLineCount(WrappedSyntaxView.java:1188)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.handleDocumentEvent(WrappedSyntaxView.java:1439)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView$WrappedLine.insertUpdate(WrappedSyntaxView.java:1463)
	at org.fife.ui.rsyntaxtextarea.WrappedSyntaxView.insertUpdate(WrappedSyntaxView.java:706)
	at javax.swing.plaf.basic.BasicTextUI$RootView.insertUpdate([email protected]/BasicTextUI.java:1711)
	at javax.swing.plaf.basic.BasicTextUI$UpdateHandler.insertUpdate([email protected]/BasicTextUI.java:1978)
	at javax.swing.text.AbstractDocument.fireInsertUpdate([email protected]/AbstractDocument.java:227)
	at org.fife.ui.rsyntaxtextarea.RSyntaxDocument.fireInsertUpdate(RSyntaxDocument.java:187)
	at javax.swing.text.AbstractDocument.handleInsertString([email protected]/AbstractDocument.java:781)
	at javax.swing.text.AbstractDocument.insertString([email protected]/AbstractDocument.java:740)
	at javax.swing.text.PlainDocument.insertString([email protected]/PlainDocument.java:131)
	at javax.swing.text.AbstractDocument.replace([email protected]/AbstractDocument.java:699)
	at javax.swing.text.JTextComponent.setText([email protected]/JTextComponent.java:1725)
	at org.apache.jmeter.gui.util.JSyntaxTextArea.setInitialText(JSyntaxTextArea.java:305)
	at org.apache.jmeter.protocol.http.config.gui.UrlConfigGui.configure(UrlConfigGui.java:291)
	at org.apache.jmeter.protocol.http.control.gui.HttpTestSampleGui.configure(HttpTestSampleGui.java:134)
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addComponent(JMeterTreeModel.java:162)
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:131)
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:131)
	at org.apache.jmeter.gui.tree.JMeterTreeModel.addSubTree(JMeterTreeModel.java:123)
	at org.apache.jmeter.gui.GuiPackage.addSubTree(GuiPackage.java:555)
	at org.apache.jmeter.gui.action.Load.insertLoadedTree(Load.java:201)
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:132)
	at org.apache.jmeter.gui.action.Load.loadProjectFile(Load.java:103)
	at org.apache.jmeter.gui.action.Load.doActionAfterCheck(Load.java:90)
	at org.apache.jmeter.gui.action.AbstractActionWithNoRunningTest.doAction(AbstractActionWithNoRunningTest.java:44)
	at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:83)
	at org.apache.jmeter.gui.action.ActionRouter.lambda$actionPerformed$0(ActionRouter.java:65)
	at org.apache.jmeter.gui.action.ActionRouter$$Lambda/0x000000e0015201f8.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch([email protected]/InvocationEvent.java:318)

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

in jdk 21, i try ./gradlew.bat -PjdkBuildVersion=21 -PjdkTestVersion=21 runGui , but some error happen as front:
#6262 (comment)

It looks like the build requires Java 17 anyway, so you need to have both Java 17 and 21.
See https://docs.gradle.org/current/userguide/toolchains.html regarding the automatic toolchain search and download.

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

#6262 (comment)

i primary want to debug Jmeter source with a jmx file, how to dubug in GUI mode with a given jmx file?

in org.apache.jmeter.JMeterTest, i see many runNonGui test case , is there any runGui test case ?

jmeter/src/core/test/JMeterTest

from jmeter.

vlsi avatar vlsi commented on June 2, 2024

how to dubug in GUI mode with a given jmx file?

Launch GUI in debug mode, in GUI click "file -> open" and so on.

from jmeter.

ibingdian avatar ibingdian commented on June 2, 2024

thank you very much , i think There are probably no more questions about this issue

from jmeter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.