Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have 2 Jetty servers with the same problem,
The Jetty web app gets "freeze" every couple of hours.
(Freeze means that the console is not doing anything/unable to receive new requests)
During the "Freeze" I noticed that the JVM is using more swap than it usually does.
It seems like sort of a memory leak, even tough the system has enough memory.
I run the JVM with those run parameters:
-Xms8000m -Xmx280000m
Those are the RAM graphs (blank lines are what I called "freeze"):
See reference number 1 below
I also noticed the the garbage collector is not running very frequent.
Maybe it is related?
See reference number 2 below
I'd appreciate any input regarding a proper use of the garbage collector and any other ideas that would help resolve it
This is a spring/Hibernate based Application.
http://i.stack.imgur.com/VGOkM.jpg
http://i.stack.imgur.com/eI1mt.jpg
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I'm trying to use an applet to recovery some old data on a 3rd party site that i wished to keep. I see that nowadays all browser that i know force java plugin to be unavailable, is there some technical workaround to allow current and future applet execution for the sake of data migration? i looked into Lobo browser and JWebPane but to no avail
Don't know about modern browser compatibility. You should still be able to use and older version of a compatible browser - I'd just be extra carefull as security fixes would obviously be absent.
This post might old some good infos on the subject: https://superuser.com/questions/999778/when-firefox-drops-java-applet-support-how-will-i-run-old-java-applets
However, keep in mind that the very existence of the applet plugin will cease with Java 9. I'd hurry to find a more futur-proof solution.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
What OS do they use for example and how to they boot up so quickly (compared to a raspberry pi)?
Currently, they are two option existing:
they are running a custom piece of software that support a jvm
they are running a minimum version of a linux , just what's enough to run the jvm, everything else is disabled / removed.
It's booting that fast because it has only the piece of code needed to run a minimal jvm, and everything else is disabled in opposition of the raspberry pi who has a complete kernel, with a lot of modules, a desktop environment, etc, ... to load.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I have added the file /Users/Jim/Library/Preferences/AndroidStudio/studio.vmoptions
With the following:
-Xms2048m
-Xmx4096m
-XX:MaxPermSize=350m
-XX:ReservedCodeCacheSize=96m
-XX:+UseCompressedOops
I am not seeing a dramatic performance difference from the default. How do I know if these options are being used? Also are the rest of the options (premises and reservedcodechache) reasonable or too low?
Unfortunately it is not possible to achieve a dramatic performance improvement for Android Studio by changing the VM options. If it was possible at all, then the developers of Android Studio would have included those options in the default distribution - no one likes to waste an opportunity to make their product faster.
If there are specific areas where you see inadequate performance, you're welcome to report performance problems to Google or JetBrains, and usually there are workarounds or ways to help. But in general, the only way to make such a product very fast is to get a very fast computer.
To see how much memory is actually being used by Android Studio and how much is available, you can enable the memory usage indicator using Settings | Appearance | [x] Show memory monitor.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I create JVM with fewer cpu and ram (resources) and give other access to it, while also ensuring that they cannot manipulate or view files or data of my system?
I want to create a web interface java compiler which everyone can use and would not like if other can manipulate my system.
If you use VirtualBox or another VM you can
choose the OS, it doesn't have to be the same.
choose all the files it can see
choose how much CPUs and memory it can use.
make it hard to break out of the virtual host and into the real host.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
Closed 9 years ago.
Improve this question
In my application I need to make use of multiple threads to make it work faster but I have been facing a situation where it says that unable to create native threads.
I have read that it is the RAM which decides the number of the threads a program can have which depends on the number of threads*stack size for each thread.
How do we know the stack size for a thread in Java? Can I decide stack size for thread on my own?
The number of native threads you can create depends on the OS. It's rather the OS that stops you from going to such a huge number, not the memory size.