Menu

#9 enable specifying emma port number

open
nobody
None
5
2009-04-07
2009-04-07
No

Our product consists of 4 different servers. The idea is that you can spread the load across different machines. The servers communicate with one another through JMS. As a developer I run all the servers on my development box. I instrument and merge into a single directory. If I instrument the code for only one of the servers I can run our 'integration tests' with the emma instrumentation directory at the front of the classpath and I can determine the code coverage. It breaks down when I instrument the code for multiple servers and try to run them concurrently. I see this in the log for the 2nd server I try to start:

EMMA: collecting runtime coverage data ...
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:359)
at java.net.ServerSocket.bind(ServerSocket.java:319)
at java.net.ServerSocket.<init>(ServerSocket.java:185)
at java.net.ServerSocket.<init>(ServerSocket.java:97)
at com.vladium.emma.rt.RTController.start(RTController.java:99)
at com.vladium.emma.rt.RT.reset(RT.java:222)
at com.vladium.emma.rt.RT.<clinit>(RT.java:540)
at com.ali.statusserver.StatusServerBootstrap.$VRi(StatusServerBootstrap.java)
at com.ali.statusserver.StatusServerBootstrap.<clinit>(StatusServerBootstrap.java)
java.lang.Error: EMMA: runtime controller could not be started, aborting
at com.vladium.emma.rt.RT.reset(RT.java:233)
at com.vladium.emma.rt.RT.<clinit>(RT.java:540)
at com.ali.statusserver.StatusServerBootstrap.$VRi(StatusServerBootstrap.java)
at com.ali.statusserver.StatusServerBootstrap.<clinit>(StatusServerBootstrap.java)

I believe if I could specify the port number for emma for each server I could run the servers concurrently under emma. Unless I missed something in the documentation there is no property that can be used to specify the port.

This request seems similar to: 1280012 - but in that case it looks like the expectation is that servers will be running on different hosts

Discussion


Log in to post a comment.