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

Parallel Start incompatible with SocketCommandProcessor #19

Open
pharrishur opened this issue Jan 13, 2021 · 0 comments
Open

Parallel Start incompatible with SocketCommandProcessor #19

pharrishur opened this issue Jan 13, 2021 · 0 comments

Comments

@pharrishur
Copy link
Collaborator

pharrishur commented Jan 13, 2021

Specifying parallel start of threads along with a SocketCommandProcessor results in a java.lang.NullPointerException. The following command attempts to start threads in batches of 4 (-wp true -wc 4) and uses the SocketCommandProcessor

java -Xms768M -Xmx768M -Xmn600M JMSPerfHarness -su -wt 10 -wi 0 -nt 280 -ss 5 -sc BasicStats -rl 0 -id 5 -tc jms.r11.Sender -d REQUEST -to 20 -db 1 -dx 1 -dn 1 -jb *UC01QM -jt mqc -pc WebSphereMQ -ms 2048 -rt 1 -ccdt ccdt.json -ar WMQ_CLIENT_RECONNECT -an mqperf.receiver -cmd_c SocketCommandProcessor -wp true -wc 4

After the 280 threads are started a null pointer exception is thrown by the SocketCommandProcessor (starting threads singly works ok)

...
Sender279: START                                                                                   
Sender280: START
id=5,rate=240.00,total messages=1200,Snapshot period=5,threads=276                                    
ControlThread1: threads=280,fastest_conn=200,slowest_conn=1204,avg_conn=217                           
ControlThread1: Fatal Error.                                                                          
java.lang.NullPointerException                                                                        
        at com.ibm.uk.hursley.perfharness.cmd.SocketCommandProcessor.sendMessage(SocketCommandProcessor.java:122)
        at com.ibm.uk.hursley.perfharness.ControlThread.startWorkers(ControlThread.java:720)          
        at com.ibm.uk.hursley.perfharness.ControlThread.startWorkers(ControlThread.java:736)          
        at com.ibm.uk.hursley.perfharness.ControlThread.run(ControlThread.java:251)                   
Sender272: STOP
...
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

No branches or pull requests

1 participant