Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running a test plan that includes a CSV Data Set Config element with the Delimiter field blank causes an OutOfMemoryError #2124

Closed
asfimport opened this issue Jun 11, 2008 · 1 comment

Comments

@asfimport
Copy link
Collaborator

Jon Schneider (Bug 45185):
In a JMeter test plan that includes a CSV Data Set Config element, if the value of the Delimiter field is cleared and then the test plan is run, an OutOfMemoryError occurs, and the JMeter GUI crashes (closes).

The following error gets displayed in the console window: "Exception java.lang.OutOfMemoryError: requested 83886096 bytes for promotion. Out of swap space?"

The attached test plan, BlankDelimiter.jmx, reproduces the issue.

If the Delimiter field in the CSV Data Set Config element is set back to a value of ",", then the error does not occur; the test runs normally.

It would be helpful if there was better error handling for this case, e.g. if the GUI could inform the user that the Delimiter field must be non-empty.

Created attachment BlankDelimiter.jmx: A simple JMeter test plan with a CSV Data Set Config element with a blank Delimiter field.

BlankDelimiter.jmx
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.0">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
      <stringProp name="TestPlan.comments"></stringProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
    </TestPlan>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" testname="Thread Group" enabled="true">
        <elementProp name="ThreadGroup.main_controller" elementType="LoopController" guiclass="LoopControlPanel" testclass="LoopController" testname="Loop Controller" enabled="true">
          <boolProp name="LoopController.continue_forever">false</boolProp>
          <stringProp name="LoopController.loops">1</stringProp>
        </elementProp>
        <stringProp name="ThreadGroup.num_threads">1</stringProp>
        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
        <longProp name="ThreadGroup.start_time">1213194193000</longProp>
        <longProp name="ThreadGroup.end_time">1213194193000</longProp>
        <boolProp name="ThreadGroup.scheduler">false</boolProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <stringProp name="ThreadGroup.duration"></stringProp>
        <stringProp name="ThreadGroup.delay"></stringProp>
      </ThreadGroup>
      <hashTree>
        <GenericController guiclass="LogicControllerGui" testclass="GenericController" testname="Simple Controller" enabled="true"/>
        <hashTree>
          <CSVDataSet guiclass="TestBeanGUI" testclass="CSVDataSet" testname="CSV Data Set Config" enabled="true">
            <stringProp name="filename">c:\temp\t.txt</stringProp>
            <stringProp name="fileEncoding"></stringProp>
            <stringProp name="variableNames">x</stringProp>
            <stringProp name="delimiter"></stringProp>
            <boolProp name="recycle">true</boolProp>
            <boolProp name="stopThread">false</boolProp>
          </CSVDataSet>
          <hashTree/>
        </hashTree>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

Severity: minor
OS: Windows XP

@asfimport
Copy link
Collaborator Author

Sebb (migrated from Bugzilla):
Fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=674215&view=rev
Log:
#2124 - CSV dataset blank delimiter causes OOM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant