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
Tag: java
“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
The optimal way to lock and write to a file in Scala on Linux
I’m having a hard time finding the correct way to do any advanced file-system operations on Linux using Scala. The one which I really can’t figure out if best described by the following pseudo-code: Basically open a file in append mode (create it if it’s non existent), get an exclusive lock to it and write to it (with the implicit
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
Containerized spring boot application with oracle database resetting connection
I am having a problem with a containerized spring boot application using oracle database. I successfully build my image but when I run it using docker the application gets stuck on getting a connection pool. The application runs with a connection reset exception and if I try to connect on it I get another connection reset exception, but if I
Identifying http request with KERBEROS from Java runing on Linux
I have some environment with both Linux and Windows servers. Authentication is handled by Kerberos. I want to make some JAVA code which automatically authenticates the http requests it makes as being done by the logged in user executing the program. For example, if I have this code: when I execute it from windows, it works out of the box.
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
linux spring tool suite (eclipse) launches from terminal but not from desktop
I am setting up Spring Tool Suite IDE on a linux mint cinnamon machine. I have installed the JDK, added it to my path. When I do java -version everything works. When I navigate to the folder containing Spring tool suite and execute it using ./STS it launches correctly. When I navigate to that file in finder, and click on
Java web application seems to go idle quickly in Tomcat
I’m new to java and tomcat. I’m developing a website in java using spring mvc. It’s deployed to a linux server that’s running Tomcat 8. Everything works fine when I deploy, it connects to the database great. The issue is that the site seems to go idle very quickly. I haven’t been able to time it exactly, but it seems