jvm

How do I see the debug information generated by the -Dsun.security.krb5.debug JVM option?

点点圈 提交于 2021-01-28 02:03:10
问题 I'm running a JAR with the option -Dsun.security.krb5.debug=true . How and where do I see the debug information generated? 回答1: This is a parameter for JVM. It usually goes with -Dsun.security.jgss.debug=true Afterwards, to see debug lines, perform any JGSS/Kerberos operation, for example those described in tutorial: http://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/. Debug information is written to console. To see it you can either start jar from console java -jar

Grails not working on Ubuntu

≡放荡痞女 提交于 2021-01-28 01:56:42
问题 I'm new to Grails,but i have some problems... so i've started to install all of what is required to make it work : jdk8, setting the JAVA_HOME variable etc.. then i've installed Grails, created a new app with it and trying to run it,without modifying it, just to see if Grails was working fine, but unfortunately, nothing happened .. not even errors.. I've tried making it work changing the jdk to 1.7 version because I’ve read that it could be the main issue, but it's still the same.. Even when

Recreate System.out to print again in CONSOLE after System.out.close()

社会主义新天地 提交于 2021-01-28 01:53:17
问题 I have a desktop application, when there is a freeze for some minutes, there is a thread which monitors the freeze and it starts dumping stack traces of all threads(this is done in native call so that JVM_DumpAllStacks can be invoked) into temporary file. Then the temporary file is read as String after the native call and it is used to log in application's own logging framework. The problem is, After all these process, I am not able to restore System.out to CONSOLE stream. This is better

Java environment does not start even in the control panel [closed]

混江龙づ霸主 提交于 2021-01-27 18:12:05
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 months ago . Improve this question I have this problem for some time but I have not been able to solve it, Java environment or JVM (sorry if I confuse both) just won't start, and programs like Jdownloader2 or Minecraft launcher do not start either, there is also no error message, even when I try

JVM Invalid Nested Class Name?

点点圈 提交于 2021-01-27 14:22:22
问题 The compiler for a JVM-based programming language currently that I am working on uses this code to run a specified main method after compilation: URL url = DyvilCompiler.config.outputDir.toURI().toURL(); Class c = Class.forName(mainType, false, new URLClassLoader(new URL[] { url }, ClassLoader.getSystemClassLoader())); Method m = c.getMethod("main", String[].class); m.invoke(null, new Object[] { args }); However, when compiling this code: package dyvil.test // some uninteresting import stuff

JVM issues with a large in-memory object

拜拜、爱过 提交于 2021-01-27 12:20:43
问题 I have a binary that contains a list of short strings which is loaded on startup and stored in memory as a map from string to protobuf (that contains the string..). (Not ideal, but hard to change that design due to legacy issues) Recently that list has grown from ~2M to ~20M entries causing it to fail when constructing the map. First I got OutOfMemoryError: Java heap space . When I increased the heap size using the xms and xmx we ran into GC overhead limit exceeded . Runs on a Linux 64-bit

JVM issues with a large in-memory object

感情迁移 提交于 2021-01-27 12:18:08
问题 I have a binary that contains a list of short strings which is loaded on startup and stored in memory as a map from string to protobuf (that contains the string..). (Not ideal, but hard to change that design due to legacy issues) Recently that list has grown from ~2M to ~20M entries causing it to fail when constructing the map. First I got OutOfMemoryError: Java heap space . When I increased the heap size using the xms and xmx we ran into GC overhead limit exceeded . Runs on a Linux 64-bit

Where is the best place to do initVM and attachCurrentThread when using pylucene in Django

一世执手 提交于 2021-01-27 06:50:26
问题 I'm using pylucene in a django based site and I was wondering if anyone knew where the best place to start up the jvm and attach threads would be. I don't want to have to start a new jvm every time someone loads a page, but I was occasionally getting the cryptic "Cannot Import Name" error in django when I was attaching threads at search time. Is it a mistake to attach the thread in views.py? Edit : I'm specifically looking for a way to instantiate a single jvm and leave it running so I can

Where is the best place to do initVM and attachCurrentThread when using pylucene in Django

爱⌒轻易说出口 提交于 2021-01-27 06:50:10
问题 I'm using pylucene in a django based site and I was wondering if anyone knew where the best place to start up the jvm and attach threads would be. I don't want to have to start a new jvm every time someone loads a page, but I was occasionally getting the cryptic "Cannot Import Name" error in django when I was attaching threads at search time. Is it a mistake to attach the thread in views.py? Edit : I'm specifically looking for a way to instantiate a single jvm and leave it running so I can

How to list (java) annotations on Kotlin data class fields?

前提是你 提交于 2021-01-27 06:31:37
问题 I am using Firestore's Java-based annotation for marking fields and methods for mapping document fields to Java class elements: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.METHOD, ElementType.FIELD}) public @interface PropertyName { String value(); } I am using it on a field in a Kotlin data class, which compiles fine: data class MyDataClass( @PropertyName("z") val x: Int ) In IntelliJ and Android Studio, I can see it show up in the decompiled class dump: public final data class