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

Add Test5 - create containers with RDF bodies #8

Merged
merged 2 commits into from
Jul 4, 2016

Conversation

awoods
Copy link
Member

@awoods awoods commented Jul 3, 2016

@ruebot
Copy link
Contributor

ruebot commented Jul 4, 2016

Built a vanilla Ubuntu image, and deployed fcrepo4 from HEAD. Looks like it is running once and dying:

vagrant@islandora-deux:~/git/apache-jmeter-3.0/bin$ ./jmeter -Dfedora_4_server=localhost -Dfedora_4_context=fcrepo/rest -Dcontainer_rdf_threads=1 -n -t /home/vagrant/git/fcrepo4-jmeter/fedora.jmx >> /tmp/pr-test.log

catalina.out

INFO: Server startup in 13492 ms
INFO 13:29:31.228 (FedoraLdp) PUT resource 'perf/perf_718726212'
INFO 13:29:31.657 (FedoraLdp) OPTIONS for 'perf/perf_718726212'
INFO 13:29:31.708 (FedoraLdp) GET resource 'perf/perf_718726212'
INFO 13:29:31.971 (FedoraLdp) PATCH for 'perf/perf_718726212'
INFO 13:29:32.348 (FedoraLdp) Delete resource 'perf/perf_718726212'
INFO 13:29:32.459 (FedoraLdp) Ingest with path: /3d/f4/fb/9e/3df4fb9e-725d-4c04-9c03-5f58965857c5
vagrant@islandora-deux:/tmp$ tail -f pr-test.log 
Writing log file to: /home/vagrant/git/apache-jmeter-3.0/bin/jmeter.log
Creating summariser <summary>
Created the tree successfully using /home/vagrant/git/fcrepo4-jmeter/fedora.jmx
Starting the test @ Mon Jul 04 13:29:29 UTC 2016 (1467638969609)
Waiting for possible Shutdown/StopTestNow/Heapdump message on port 4445
summary +      1 in 00:00:02 =    0.5/s Avg:  1296 Min:  1296 Max:  1296 Err:     0 (0.00%) Active: 1 Started: 1 Finished: 0
summary +      5 in 00:00:01 =    5.7/s Avg:   141 Min:    27 Max:   374 Err:     1 (20.00%) Active: 0 Started: 1 Finished: 1
summary =      6 in 00:00:03 =    2.2/s Avg:   333 Min:    27 Max:  1296 Err:     1 (16.67%)
Tidying up ...    @ Mon Jul 04 13:29:32 UTC 2016 (1467638972469)
... end of run
vagrant@islandora-deux:~/git/apache-jmeter-3.0/bin$ cat jmeter.log 
2016/07/04 13:29:29 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Loading user properties from: /home/vagrant/git/apache-jmeter-3.0/bin/user.properties 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Loading system properties from: /home/vagrant/git/apache-jmeter-3.0/bin/system.properties 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Setting System property: fedora_4_server=localhost 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Setting System property: fedora_4_context=fcrepo/rest 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Setting System property: container_rdf_threads=1 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Copyright (c) 1998-2016 The Apache Software Foundation 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Version 3.0 r1743807 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: java.version=1.8.0_91 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: java.vm.name=Java HotSpot(TM) 64-Bit Server VM 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: os.name=Linux 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: os.arch=amd64 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: os.version=3.13.0-88-generic 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: file.encoding=UTF-8 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Max memory     =518979584 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Available Processors =1 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Default Locale=English (United States) 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: JMeter  Locale=English (United States) 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: JMeterHome=/home/vagrant/git/apache-jmeter-3.0 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: user.dir  =/home/vagrant/git/apache-jmeter-3.0/bin 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: PWD       =/home/vagrant/git/apache-jmeter-3.0/bin 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: IP: 127.0.1.1 Name: islandora-deux FullName: islandora-deux 
2016/07/04 13:29:29 INFO  - jmeter.services.FileServer: Default base='/home/vagrant/git/apache-jmeter-3.0/bin' 
2016/07/04 13:29:29 INFO  - jmeter.services.FileServer: Set new base='/home/vagrant/git/fcrepo4-jmeter' 
2016/07/04 13:29:29 INFO  - jmeter.save.SaveService: Testplan (JMX) version: 2.2. Testlog (JTL) version: 2.2 
2016/07/04 13:29:29 INFO  - jmeter.save.SaveService: Using SaveService properties file encoding UTF-8 
2016/07/04 13:29:29 INFO  - jmeter.save.SaveService: Using SaveService properties version 2.9 
2016/07/04 13:29:29 INFO  - jmeter.save.SaveService: All converter versions present and correct 
2016/07/04 13:29:29 INFO  - jmeter.save.SaveService: Loading file: /home/vagrant/git/fcrepo4-jmeter/fedora.jmx 
2016/07/04 13:29:29 INFO  - jmeter.util.BSFTestElement: Registering JMeter version of JavaScript engine as work-round for BSF-22 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/html is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xhtml+xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for application/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/xml is org.apache.jmeter.protocol.http.parser.LagartoBasedHtmlParser 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/vnd.wap.wml is org.apache.jmeter.protocol.http.parser.RegexpHTMLParser 
2016/07/04 13:29:29 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase: Parser for text/css is org.apache.jmeter.protocol.http.parser.CssParser 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Creating summariser <summary> 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Running the test! 
2016/07/04 13:29:29 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2016/07/04 13:29:29 INFO  - jmeter.samplers.SampleEvent: List of sample_variables: [] 
2016/07/04 13:29:29 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must contain the string: '.functions.' 
2016/07/04 13:29:29 INFO  - jmeter.engine.util.CompoundVariable: Note: Function class names must not contain the string: '.gui.' 
2016/07/04 13:29:29 INFO  - jmeter.reporters.ResultCollector: Folder /home/vagrant/git/apache-jmeter-3.0/bin/log was created 
2016/07/04 13:29:29 INFO  - jmeter.JMeter: Running test (1467638969757) 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : Fedora4 Create New Containers 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting 0 threads for group Fedora4 Create New Containers. 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Test will stop on error 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 0 ramp-up 1 perThread Infinity delayedStart=false 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Started thread group number 1 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Waiting for thread group: Fedora4 Create New Containers to finish before starting next group 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 2 : Fedora4 Create Binary Resource 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting 0 threads for group Fedora4 Create Binary Resource. 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Test will stop on error 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 2 threads 0 ramp-up 1 perThread Infinity delayedStart=false 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Started thread group number 2 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Waiting for thread group: Fedora4 Create Binary Resource to finish before starting next group 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 3 : Fedora4 Create New Containers with RDF 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group Fedora4 Create New Containers with RDF. 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: Test will stop on error 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Starting thread group number 3 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false 
2016/07/04 13:29:29 INFO  - jmeter.threads.ThreadGroup: Started thread group number 3 
2016/07/04 13:29:29 INFO  - jmeter.engine.StandardJMeterEngine: All thread groups have been started 
2016/07/04 13:29:29 INFO  - jmeter.threads.JMeterThread: Thread started: Fedora4 Create New Containers with RDF 3-1 
2016/07/04 13:29:30 INFO  - jmeter.protocol.http.sampler.HTTPHCAbstractImpl: Local host = islandora-deux 
2016/07/04 13:29:30 INFO  - jmeter.protocol.http.sampler.HTTPHC4Impl: HTTP request retry count = 0 
2016/07/04 13:29:30 INFO  - jmeter.samplers.SampleResult: Note: Sample TimeStamps are START times 
2016/07/04 13:29:30 INFO  - jmeter.samplers.SampleResult: sampleresult.default.encoding is set to ISO-8859-1 
2016/07/04 13:29:30 INFO  - jmeter.samplers.SampleResult: sampleresult.useNanoTime=true 
2016/07/04 13:29:30 INFO  - jmeter.samplers.SampleResult: sampleresult.nanoThreadSleep=5000 
2016/07/04 13:29:31 INFO  - jmeter.reporters.Summariser: summary +      1 in 00:00:02 =    0.5/s Avg:  1296 Min:  1296 Max:  1296 Err:     0 (0.00%) Active: 1 Started: 1 Finished: 0 
2016/07/04 13:29:32 INFO  - jmeter.threads.JMeterThread: Stop Test detected by thread: Fedora4 Create New Containers with RDF 3-1 
2016/07/04 13:29:32 INFO  - jmeter.threads.JMeterThread: Thread finished: Fedora4 Create New Containers with RDF 3-1 
2016/07/04 13:29:32 INFO  - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test 
2016/07/04 13:29:32 INFO  - jmeter.reporters.Summariser: summary +      5 in 00:00:01 =    5.7/s Avg:   141 Min:    27 Max:   374 Err:     1 (20.00%) Active: 0 Started: 1 Finished: 1 
2016/07/04 13:29:32 INFO  - jmeter.reporters.Summariser: summary =      6 in 00:00:03 =    2.2/s Avg:   333 Min:    27 Max:  1296 Err:     1 (16.67%) 

* i.e, parent directory of 'sample.ttl'
@ruebot
Copy link
Contributor

ruebot commented Jul 4, 2016

@awoods perfect! Good to go now 😄

@ruebot ruebot merged commit cad81b5 into fcrepo4-labs:master Jul 4, 2016
@awoods
Copy link
Member Author

awoods commented Jul 4, 2016

@ruebot, It looks like the issue was that it was assumed that the user would run the test from the fcrepo4-jmeter directory. I have pushed a new commit that parameterizes the location of the "resource directory", i.e. the parent directory of sample.ttl.

I believe the following command should now work for you... if you update your branch with the latest commit:

vagrant@islandora-deux:~/git/apache-jmeter-3.0/bin$ ./jmeter -Dfedora_4_server=localhost -Dfedora_4_context=fcrepo/rest -Dresource_directory=/home/vagrant/git/fcrepo4-jmeter -Dcontainer_rdf_threads=1 -n -t /home/vagrant/git/fcrepo4-jmeter/fedora.jmx >> /tmp/pr-test.log

@awoods awoods deleted the fcrepo-1947 branch July 4, 2016 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants