Comments (11)
Hi, can you please describe your setup? This logging is directly from DCEVM and is only related to Hotswap Plugin class redefinition.
Default HotswapAgent logging level is INFO.
Do you use latest DCEVM?
from hotswapagent.
I'm using JDK 1.7.0_51 64 bit (host: Win7), DCEVM 24.51-b03-dcvmfull-3 (latest on dcevm.github.io).
I'm running an webapplication on Tomcat 7.0.50.
I've noticed that the verbose logging does not happen at other webapps, so there might be something application specific going on. If I run the application with DCEVM but without HotswapAgent the logging stops.
How can I suppress these messages?
If you need additional information, let me know.
from hotswapagent.
Logging Source of this stuff is definitively DCEVM or OpenJDK respectively. I did some private patch, because I hate this mess.
from hotswapagent.
Do you have the patch somewhere?
Could you tell us how to patch?
Thanks in advance.
from hotswapagent.
Comment following lines (this is for v7u85):
diff --git a/src/share/vm/classfile/systemDictionary.cpp b/src/share/vm/classfile/systemDictionary.cpp
index 39ec219..1321603 100644
--- a/src/share/vm/classfile/systemDictionary.cpp
+++ b/src/share/vm/classfile/systemDictionary.cpp
@@ -2032,7 +2032,7 @@ void SystemDictionary::check_constraints(int d_index, unsigned int d_hash,
assert(check->klass_part()->oop_is_instance(), "noninstance in systemdictionary");
if ((defining == true) && ((k() != check) && k->old_version() != check)) {
ResourceMark rm(Thread::current());
- tty->print_cr("(%d / %d) (%s/%s)", k->revision_number(), check->klass_part()->revision_number(), k->name()->as_C_string(), check->klass_part()->name()->as_C_string());
+ // tty->print_cr("(%d / %d) (%s/%s)", k->revision_number(), check->klass_part()->revision_number(), k->name()->as_C_string(), check->klass_part()->name()->as_C_string());
k()->print();
check->print();
linkage_error = "loader (instance of %s): attempted duplicate class "
diff --git a/src/share/vm/oops/klass.cpp b/src/share/vm/oops/klass.cpp
index 19a9f5b..8361662 100644
--- a/src/share/vm/oops/klass.cpp
+++ b/src/share/vm/oops/klass.cpp
@@ -601,7 +601,7 @@ jint Klass::jvmti_class_status() const {
void Klass::oop_print_on(oop obj, outputStream* st) {
ResourceMark rm;
// print title
- st->print_cr("%s ", internal_name());
+ // st->print_cr("%s ", internal_name());
obj->print_address_on(st);
if (WizardMode) {
@@ -610,15 +610,15 @@ void Klass::oop_print_on(oop obj, outputStream* st) {
}
// print class
- st->print(" - klass: ");
+ // st->print(" - klass: ");
obj->klass()->print_value_on(st);
- st->cr();
+ //st->cr();
}
void Klass::oop_print_value_on(oop obj, outputStream* st) {
// print title
ResourceMark rm; // Cannot print in debug mode without this
- st->print("%s", internal_name());
+ // st->print("%s", internal_name());
obj->print_address_on(st);
}
from hotswapagent.
Thank you very much. It works perfectly for 7u79 too.
I've asked DCEVM developers to apply your patch or something similar when in production mode
dcevm/dcevm#86
Hope it helps other people.
from hotswapagent.
My solution is hack. I didn't study the purpose, why the messages are printed directly to stdout. There should be another solution how to avoid this.
from hotswapagent.
@skybber - Would you be kind enough to patch the DCE VM source all by yourself, as it seems no one is assigned to fix this issue on DCEVM side?
from hotswapagent.
I have spent days trying to get dcevm to compile with no success. If someone here has or could get a build of java 7u79 full, with these logging fixes applied, I would love you forever.
from hotswapagent.
cchilds, if you use debian/ubuntu you can use the following url as repository:
http://babel.ls.fi.upm.es/~vpablos/others/packages/debian/
It is 7u79 without patching, but it is the only version I have successfully patched.
The other ones gave me headaches ... :-(
If not, you can always download the package and extract the files from it.
By the way, eclipse Mars does not work with DCEVM.
from hotswapagent.
Thanks @vpablos, but unfortunately, I'm using Windows. Thanks anyway.
What issues are you having with Mars and DCEVM? I have used it with Mars quite a bit with no problems.
from hotswapagent.
Related Issues (20)
- MyBatis Plus Dynamic Sql Hotswap do not work
- cannot create release HOT 1
- Caused by: compile error: no such class: ManagedBean
- No match for watchkey event
- Does the solution of JetBrainsRuntime 11 + HotswapAgent can work? HOT 1
- Getting error every build HOT 1
- Errors thrown when starting jbr_jcef-17.0.7 Minecraft Paper server. HOT 4
- IntelliJ plugin or other easy way to launch from IntelliJ HOT 1
- Can HotswapAgent support add @Resource/@Autowired fields in springboot based project? HOT 6
- JacksonPlugin ConcurrentModificationException
- What is the ProxyReplacerTransformer in the Spring plugin used for? HOT 1
- HotswapAgent IDEA plugin Could not identify JBR17's dcevm HOT 1
- bug: my Spring Boot project will OOM after running for a day
- Can not get a JavaCompiler instance with jbr_17.0.7 HOT 1
- Executing ReloadJavaProxyCommand caused an infinite loop HOT 5
- What is the ProxyReplacerTransformer in the Spring plugin used for? HOT 1
- How do I run this from gradle / openjdk? (Exception on changes) HOT 2
- NullPointerException: Cannot invoke "java.net.URL.getFile()" because the return value of "org.hotswap.agent.javassist.ClassPool.find(String)" is null HOT 3
- Application run failed HOT 2
- java.lang.NullPointerException: Cannot invoke "java.net.URL.getFile()" because the return value of "org.hotswap.agent.javassist.ClassPool.find(String)" is null
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hotswapagent.