Skip to content
Advertisement

Tag: java

JAX WS Server implementation performance issue for Linux JVM?

I’ve faced with a very weird problem. The built-in JAX WS server implementation works 100 times slower on linux machines then on Mac OS X or Windows. I’ve created and shared a JMH test: https://github.com/Andremoniy/linuxjvmjaxwstest Basically it does the following: starts a JAX WS with one SOAP method: endpoint = Endpoint.publish(“http://localhost:8888/”, new FooServiceImpl()); performs client requests to this method: String

“su ” fails with “standard in must be atty”

I researched this question and all answers suggest visudo to add: Defaults:user !requiretty It does not work! I have two Linux boxes (RedHat). I have a Java class which uses ProcessBuilder/Process to execute commands. The class runs under a system account. On both boxes, I run and provide the password for other-user in an input stream to the Process object.

What is contained in code/internal sections of JCMD?

Dimensioning a docker container for a JVM based service is tricky (as we all know). I’m pretty sure we have slightly under-dimensioned a container and want to clear up a few questions I have relating to specific jcmd (Native Memory Tracker) outputs that we see when monitoring. Questions: Are Direct Byte Buffers included in “Internal” as reported by jcmd? What

Not able to execute a .csh script using jsch library – Exit 1

Im trying to use Jsch to execute a .csh script on a remote server. I am able to execute commands like cp, mv and ls. But when I try to execute a script that internally references some environment variables, the script is exiting with status 1. There is an INTERNAL_ENV_VARIABLE referenced inside script.sh that is not accessible when i run

Can’t get stdin to read into array on linux – Java

So I’m using Java on a Linux machine and I currently am trying to read from stdin so that when I run “java Simulation more ~test/locationOfInput/test” it takes a stream of numbers and calculates values and prints them. However, my code is locking up when trying to read in the values and I have a check for empty files so

Advertisement