We observe occaisional GC pauses on our app server which seem to be caused by a "grey object rescan". In the past they ranged from 20-30s, but yesterday we had a 84s pause. That's a bit much...[GC 1593754.769: [ParNew: 450212K->46400K(471872K), 0.1076340 secs] ...
When GetObjectField returns a local ref to an array object, does it return a referenceto the original array or a copy that needs to be freed?tia
hi,can anyone explain me how struts framework was calling the form properties getters and settersi have an idea like preparing a string such thatif propert of text box is propertName, preparring a string with get and set making first letter capital setPropertyNamegetPropertyNameand invoking ...
In the world of programming, everythings to do with making things as simple as possible.Then why-oh-why is the successor to JDK1.4 called J2SE5.0 AND JDK1.5 - apparently it has two version numbers?!?! Sun have even gone to the trouble of making both numbers work in certain places, like the ...
Hi,I am working on a program that do not report the stack trace from a crashed JVM (this is reported by customer).However i do not know how to crash a JVM, using a simple java application, so as to debug the above problem.Can someone please suggest a simple java application to cause JVM crash ...
is this the right configuration settings-Xmx1700M -Xms1000M -XX:MaxPermSize=140M -Xss128K .I am using jdk1.4.2
192 byte By
CityUa at 2007-10-2 18:06:04
Hi,all !How to find the arguments of a static method from the class file? for example, when we meet a bytecode "invokestatic", how can I know the arguments of this static method?
We are running a fairly complicated application using tomcat, hibernate, jms, xml, jni and a host of other technologies on redhat. The box is a PowerEdge SC1420, dual XEON 2.8 with 2 gig of ram. Recently we have been experiencing a jvm crash (and no, I can't pinpoint what changed). It logs to ...
Please tell me which is the best book for learning Java Internals -> JVM> Java Class File details> Execution details of Java Program, etc
Greetings,We suspect than the sound library for the JDK is causing problems with one of our desktop applications. I want to know if there is an easy way to disable all sound support in the JDK (it is not important for us) bymaybe passing a property with -D.On the other hand if we have to code, ...
620 byte By
muheeba at 2007-10-2 18:06:47
Hi Dudes,i used the below command to increase Java Heap Sizejava -Xms 512m -Xmx 512m -Xss 512m, But it is not working.I am using the below code to print the size:System.out.println("MAX MEMORY = " + Runtime.getRuntime().maxMemory() / 1048576 + "MB");System.out.println("TOTAL MEMORY = " + ...
Is there a way to gracefully exit from a Linux kill command?Given the following code: public static void main(String[] args) throws IOException {boolean bExit = false;while (!bExit){try{Thread.sleep(1000);}catch (InterruptedException ex){bExit = true;}}System.out.println("Program exiting ...
13267 byte By
dlshawa at 2007-10-2 18:13:25
We are getting a error log generated when we startup our application. This does not occur often, but seems to happen in clusters(We get several crashes in a row) .## An unexpected error has been detected by HotSpot Virtual Machine:## SIGSEGV (0xb) at pc=0xb6bfe0a2, pid=10033, tid=1827658672## ...
When I deployed the app in a Win NT 2000 I dont have any problem but when I'm using Windows NT 2003 server, with cold fusion and Sun One Server 6.1. I faced that images and css files are not loaded correctly. In some desktops I can not see the app since Windows Explorer but in others I can. ...
is there any other way of unistalling java with out using add/remove programs if so can you plz tell me!!
on runescape when i am loading i get this when it gets to preparing game engine on my java console i have java 1.5.0 it says this Error: 43534, 8, java.lang.RuntimeException: error unzippingError: 27961, -3404, java.lang.RuntimeExceptionException in thread "Thread-18" ...
is garbage collector is part of JVM or it is part of our program process.ie ... if we are having 3 programs running at the same time will we have one garbage collector for them or we will have 1 each ofor each process.what is the priority of the garbage collector as a
Hi,I'm getting the below error using the JVM 1.4.2_08. Could you tell me what the problem is?Thanks.An unexpected exception has been detected in native code outside the VM.Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at ...
hello world,hope you experienced guys could help me. sorry if my english is not perfect, but understandingly.i like to demonstrate the "optimization techniques" like code inlining (at which point it is done etc.), Dynamic Deoptimization or other important stuff i dont know yet.most knowledge i ...
Hello,I'm experimenting with modifiying our Windows application such that the front end graphical interface is recoded in Java and the existing back-end calculation engine remains in C/C++ code. The calculation engine is implemented such that if the computer has one cpu, the execution is ...
942 byte By
jontecha at 2007-10-2 18:25:27
I'm working on diagnosing some heap utilization problems in a Production environment under JDK 1.4.2, and am trying out the JVM argument -XX:+PrintClassHistogramA number of the strings appearing in the "Class Name" output column are cryptic and I haven't had luck in finding a reference. ...
How can the Java interpreter be stopped immediately from a program? Pls tell me...i will be greatfullvinay
My application, under certain uses, starts throwing OutOfMemoryError's. The peculiar thing is that there's plenty of memory.I wrote some debug code to catch the OOM and print Runtime.getRuntime().freeMemory. What I get is:Apr 25 03:25:57 localhost java.lang.OutOfMemoryError: Java heap ...
Is there any way to find the active objects in the JVM at particular point of time? All the suggestions and inputs are welcome.Thanks in advance,Raghu
During the build-process of the project I'm working on, I'm getting out-of-memory-error's. A while ago I had the same problem, then I set the VM arguments in Eclipse to -Xmx640m, and that solved the problem...Until now... Can I just change it to for example -Xmx800m? Or how can I fix ...
Hi,I get this error when i try to open a file. What does error 5 mean?.What are the possibilites where i can get this error what all should i check out to solve this error.at java.lang.Win32Process.create(Native Method)at java.lang.Win32Process.<init>(Win32Process.java:66)at ...
92 byte By
hi2vinoa at 2007-10-2 18:29:29
Hi, any one explain the reflection concept in JVM while it compile and execute a file
HiI need to ensure that may application is always running with 256 MB of heap size. Can we read this value from Java applicatio so that I can force the user to ensure the setttings.I tried using Runtime.getRuntime().maxMemory(), but it gives me back the "reserved" space for the heap. Any better ...
1184 byte By
Dwaynea at 2007-10-2 18:30:38
In my Java code, I am sending a Long to a native method like so:Java...Long hPrinter = new Long(0);...result = OpenPrinter(printerName, hPrinter, 0);...-My native method attempts to retrieve that value (which should be 0 at this point):CJNIEXPORT jlong JNICALL Java_JavaSMJSMon_OpenPrinter ...
Does anyone know how to set a breakpoint in <clinit>? I am not surehow to determine the methodID of the static initializer to be able to call:(*jvmti_env)->SetBreakpoint(jvmti_env, methodID, location);tia
818 byte By
rokasha at 2007-10-2 18:32:32
Hi AllI try to take hexadecimal address as string then convert it to binary string after that I devide it to its main part " tag,index(line),word" . finally convert each part to it's equal in hexadeciaml.this part of my method code I start it but I dont know how to compelet it. Help me public ...
224 byte By
Benicoa at 2007-10-2 18:34:44
I would like to dial to phones using a computer with commands written in Java, for this I have to access the computer serial ports(modem). If anyone can tell me how I can do that, please let me know. With many thanks.
321 byte By
grantpka at 2007-10-2 18:37:26
Trying to install JVM 5. The installation crashes with message"Java Update cannot be installed on this machine because the directory you have chosen to install is locked." This happens whether I choose a specific directory or accept the default.Anybody else experience this? ...
Hi allI'm trying to write a java application to simulate ultrasonic waves in solid plates. It's possible that i might be better off in another language, but there you are. :/my simulation currently takes about 30 mins to run, and in order for it to run at all i have to enlarge the heapspace ...
I am using compareTo method to compare two strings:if (cat.compareTo(temp) == 0){ }If they are equal i want the code to do something but it says they are not equal when out.println statements show the two strings are. I have trimmed them, converted them to lower case and still the same. What am ...
Hi all,I'm writing a program where I would like to enter code (conditionals, loops, etc) while the program is running and have it compile dynamically and run. Can anyone give me a idea on where to start with this? Just being able to invoke the compiler at runtime would be a good first step. ...
What other techniques are there that clean up the strings even though they seem to be exactly the same? .trim() has been used to exchaustion!!!
hi all,when i'm trying to create SecurityManager object i get null. how can i install SecurityManager and customizeSecurityManager security = System.getSecurityManager();this link said "how to install SecurityManager " but i didnt get any info regarding installing of ...
HiI'm working on a swing based application- JRE1.4.2+ Windows XP.In our case around 10% of the compoenents are having the same lifesapn as the application. When the application is invoked it would take around 80MB(This inludes basic jre runtime+custom frame work classes) without opening any ...
186 byte By
Javabuga at 2007-10-2 18:44:04
Hi all,I am trying to compare 2 dates right from the year to the time in seconds. can anyone suggest a utility method to go about this task please? RegardsBug
I want to retrieve the values stored at some addresses. My DLL method contained pointer as a parameter.So how could i write the program to access those values stored at those locations.Thanx in advance.
137 byte By
TxAggiea at 2007-10-2 18:45:16
Quick question:What is the benefit of choosing -server or -client for the VM? What exactly is it dependent on?Thanks
For the last week I have suddenly begun to get Windows Access Violations from what appears to be related to native java.io.WinNTFileSystem calls. I have included the HotSpot Dump in the hopes someone can help me sort this problem.Although in the case of this crash the hook.dll was the ...
Dear all,don't know if this is the right place to ask. but anyway,I started Tomcat and got this error message:"INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program ...
10890 byte By
keithcsla at 2007-10-2 18:47:19
HiCan someone help us trace what the problem is from this crash dump? We suspect it is the PermSize which caused the crash (which can be fixed by setting the MaxPermSize, but we wanted to hear any other views on this.=============## An unexpected error has been detected by HotSpot Virtual ...
how can i allow users to view qtvr panorama that requires java virtual machine
Hi,I'm using jdk1.4.2 and as its default behaviour, JVM gets allocated 64MB of Max Memory (without explicitly setting it using -Xmx Option).However, I'm able to use only around 1/4 of this allocated max memory. As soon as the application crosses this limit, JVM throws OutofMemory error.For ...
Hi.I am using JDK1.5.6 and tomcat 5.5.When I monitor gc-log of my service, I can find wonder log as below.Please, focus gc invocations=5.{Heap before gc invocations=4: PSYoungGentotal 152896K, used 141806K [0xa7b70000, 0xb2610000, 0xb2610000) eden space 131072K, 100% used ...
Hi folks,Can you help me with interpreting the following <AF[2112]: Allocation Failure. need 56 bytes, 107269 ms since last AF><AF[2112]: managing allocation failure, action=1 (0/89774256) (1285640/3219792)><GC(2112): GC cycle started Wed Apr 19 13:01:53 2006><GC(2112): ...
Hello,I have an issue with the amount of heap memory used by a Java application (1.4 and 1.5) running on Windows XP. I am trying to get the application to return unused heap memory to the operating system once it is no longer needed. I understood from other discussions on the web that I could ...