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)
- java.lang.NullPointerException: Cannot invoke "java.net.URL.getFile()" because the return value of "org.hotswap.agent.javassist.ClassPool.find(String)" is null
- Some API cannot work well in spring 6, such as org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor#postProcessPropertyValues is removed in spring6
- JDK 21 support HOT 1
- 热更新application.properties配置文件出现找不到变量错误怎么解决
- An error occurred during hot update of application.properties configuration file HOT 3
- Why does the hotswapagent 1.4.2-SNAPSHOT version of the jar not contain the springboot plug-in? HOT 6
- Mybatis hot update xml error
- Multiple instances of MapperScannerRegistrar appear, causing subsequent updates to fail
- Added an interface method. After hot update, a parameter error occurred in the request interface.
- Whether jdk21 version is supported HOT 1
- Mybatis was introduced into the project, and the properties prompt was updated: No qualifying bean of type 'org.springframework.core.env.ConfigurableEnvironment' available HOT 3
- java -jar update mybatis failure HOT 2
- nested exception HOT 1
- Help, the new Controller API interface cannot be hot updated. HOT 2
- 1.4.2-SNAPSHOT (2024-03-16) release: org.hotswap.agent.javassist.NotFoundException: invokeCustomInitMethod(..) is not found in org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory HOT 4
- 1.4.2-SNAPSHOT inner class hotswap fail HOT 2
- final static variable values duplicates when hot swap HOT 1
- Update xml sql in mybatis + spring boot project error and will not take effect HOT 1
- AnonymousClassPatchPlugin IllegalArgumentException
- Spring Plugin with Grails hitting a snag
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.