Marek Borshop

Greenhorn
+ Follow
since Nov 26, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
2
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Marek Borshop

I'd like to ask the Java pros here a question about my current study that I am about to do - what are the key contributors to the differences in efficiency of various servlet containers? I need to compare Tomcat/JBoss/Glassfish/Jetty etc. and I need to know what "factors" may affect the results in the most significant way? I am going to write mock applications for that purpose, so any recommendation for a Java feature/framework/library etc. that I might implement there so that I can greatly increase the load of the containers (actually the containers, I do not care about the load of the machine since I am going to run all the tests on the same machine of course), would be appreciated! I need the study to be as objective as possible. Thanks for any help guys!
12 years ago
Hi.

I'm trying to deal with a problem, which is a known issue, but I couldn't find any reply to this so far. I have an Android application (which I run on an emulator within Eclipse) and I need to perform a socket communication with a Java server appliaction running on the same computer. It won't connect. The server is running properly (has been tested), but the client (android app) can't connect to the server in any case. Can you recommend what to try? I know I cannot use "localhost" or 127.0.0.1 as it refers to the emulator's loopback, not the computer's one. Yet, no other IP address I pass to the Socket constructor works.

This is my Android client app's attempt to connect:

Socket connection = new Socket(InetAddress.getByName("anything"), 12345);

- if I put "localhost" or 127.0.0.1 instead of "anything" I obviously end up with "connection refused" exception.
- if I put any number as IP address (either directly here or via InetAddress.getByAddress()) the app halts and the log says "launch timeout has expired. giving up wake lock" and does not proceed any further. I tried random addresses, my ethernet NIC's address (which is pingable) and nothing works.

I can't get through this. Any advice would be appreciated!

Much thanks!

Marek
12 years ago
I'd like to know if there's any effective way how to deal with a situation when I need an Android client app to listen until it is called by a server - some kind of socket listener or so. I need the Android client app to be notified when server sends data, asynchronously. A simple example: I am running a chat service on server (Java app) and several Android clients connected and able to post messages. When any of the connected clients sends a message to the server, it processes it and notifies all other connected clients about this new post. Is there any effective way to do so? I do not much favor for the infinite loop workaround if there's better way. Thanks.
13 years ago
Thanks, Lester!

As I wrote, I am kind of new to this stuff, so I am not sure what can be tested. The round-trip time is fine I think as well as the memory usage and parallel connections of many users, so I need to find a good way how to actually perform the testing of those characteristics in an objective comparable way so that the results are trustworthy (not prone to statistics errors etc) and I need to process the information somehow to present them in an understandable way for both programmers and non-programmers (you know - tables, charts etc.). I'll take a look at the pages you suggested, thanks for it! The primary task of the thesis is to compare the efficiency of the widely-used open-source servlet containers like Tomcat, Glassfish and Jetty etc.
13 years ago
Hi.

I am supposed to do a performance analysis of servlet containers for Java (JEE) web applications of different types and write a thesis about it. Yet, I am new to this kind of stuff (not to Java, but to optimalization and testing). Could you give me some advice what factors shall I test? Of course I know I can measure processing time of a request, but what else can I test? And how to do it - what tools can I use? I am not allowed to use any commercial software which has no free trial versions as it has to be perfectly legal. I know of Apache JMeter, but I am not sure if I can test something else there apart from the request processing time.

Any piece of advice would be strongly appreciated!

Thank you.
Marek
13 years ago