long GC pause - grey object rescan

1774 byte By thetexana at 2007-10-2 18:00:23
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] ...

GetObjectField returns a local ref to an array: original array or copy?

165 byte By sanokistokaa at 2007-10-2 18:01:01
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

how struts invoking form getters and setters of a property

705 byte By nookersatyaa at 2007-10-2 18:04:31
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 ...

J2SE5.0 - what's wrong with JDK1.5?

765 byte By phil_reevea at 2007-10-2 18:04:53
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 ...

Sample code to crash JVM

361 byte By thisistoomucha at 2007-10-2 18:05:08
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 ...

JVM Configuration

131 byte By balajimaa at 2007-10-2 18:05:22
is this the right configuration settings-Xmx1700M -Xms1000M -XX:MaxPermSize=140M -Xss128K .I am using jdk1.4.2

how to find the arguments of a static method from the class file

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?

JVM Crash

1130 byte By aspeltiera at 2007-10-2 18:06:34
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 ...

Java Internals

174 byte By j.i.t.h.e.s.ha at 2007-10-2 18:06:41
Please tell me which is the best book for learning Java Internals -> JVM> Java Class File details> Execution details of Java Program, etc

How to disable sound in the JVM

472 byte By jnunezzua at 2007-10-2 18:06:45
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, ...

How to Increase Java Heap Size?

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 = " + ...

Gracefully exit from a Linux kill

1100 byte By nchristiansena at 2007-10-2 18:07:54
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 ...

JVM crashes when starting application any ideals on what is causing it

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## ...

Does Sun One crashes with Win 2003 ?

5401 byte By RCarrenoa at 2007-10-2 18:14:16
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. ...

How can i remove java without using add/remove programs

112 byte By daveyboya at 2007-10-2 18:14:17
is there any other way of unistalling java with out using add/remove programs if so can you plz tell me!!

Help with This

1314 byte By johnooooa at 2007-10-2 18:16:12
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" ...

Garbage collector and JVM

298 byte By M.Ali.Amina at 2007-10-2 18:16:22
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

Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005)

4233 byte By centroservizia at 2007-10-2 18:21:49
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 ...

Tracing VM Optimizations

1120 byte By SunBurnedBananaa at 2007-10-2 18:23:46
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 ...

calling jni methods while in native critical section

1118 byte By scott.aarona at 2007-10-2 18:25:19
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 ...

Decipering PrintClassHistogram class names

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?

120 byte By vinaygadirajua at 2007-10-2 18:25:45
How can the Java interpreter be stopped immediately from a program? Pls tell me...i will be greatfullvinay

OutOfMemoryError thrown, but Runtime.freeMemory shows lots of free memory

866 byte By leedm777a at 2007-10-2 18:26:35
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 ...

Acitve Objects in JVM

171 byte By raghu182a at 2007-10-2 18:27:38
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

VM memory arguments

371 byte By OnlineMetalheada at 2007-10-2 18:28:15
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 ...

java.io.IOException: CreateProcess: error =5

519 byte By seshu_madalaa at 2007-10-2 18:28:33
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 ...

Reflection

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

How to read value of -Xmx from my Java application?

372 byte By Jobinesha at 2007-10-2 18:29:43
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 ...

NoSuchFieldError: longValue

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 ...

JVMTI SetBreakpoint in <clinit>

255 byte By sanokistokaa at 2007-10-2 18:30:58
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

divide hexadecimal address " please help me"

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 ...

Accessing computer serial ports

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.

JVM 5 Installation error

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? ...

optimising for scientific modelling use

865 byte By jamesh82a at 2007-10-2 18:37:53
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 ...

Comparing strings

474 byte By TheRedKinga at 2007-10-2 18:39:04
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 ...

Invoking Compiler at Runtime

574 byte By jerbucketa at 2007-10-2 18:39:38
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. ...

Comparing strings 2!

150 byte By TheRedKinga at 2007-10-2 18:39:41
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!!!

how can i install SecurityManager

383 byte By nookersatyaa at 2007-10-2 18:41:11
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 ...

Better JVM Tuning options

930 byte By Jobinesha at 2007-10-2 18:43:36
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 ...

Comparing 2 Dates

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

Accessing DLL method's pointer parameters

223 byte By Ajit_Mahadika at 2007-10-2 18:44:50
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.

JVM -server

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

WinNTFileSystem KERNEL32.dll and hook.dll EXCEPTION_ACCESS_VIOLATION

16886 byte By s.elliotta at 2007-10-2 18:46:12
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 ...

Tomcat Native library not found

417 byte By yuanyuanmaa at 2007-10-2 18:47:05
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 ...

JVM crash analysis

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 ...

java virtual machine install

85 byte By learnteca at 2007-10-2 18:49:36
how can i allow users to view qtvr panorama that requires java virtual machine

JVM Heap Size Problem - OutOfMemory Error

857 byte By swap_dcha at 2007-10-2 18:49:57
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 ...

From-Space problem

4436 byte By MinChanga at 2007-10-2 18:50:19
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 ...

Interpreting the Verbose GC output

743 byte By jedi@worka at 2007-10-2 18:50:40
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): ...

Heap Memory Usage

1060 byte By Alan-Wilsona at 2007-10-2 18:51:04
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 ...