Giter Club home page Giter Club logo

Comments (11)

edudant avatar edudant commented on June 23, 2024

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.

michielproce avatar michielproce commented on June 23, 2024

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.

skybber avatar skybber commented on June 23, 2024

Logging Source of this stuff is definitively DCEVM or OpenJDK respectively. I did some private patch, because I hate this mess.

from hotswapagent.

victorpablosceruelo avatar victorpablosceruelo commented on June 23, 2024

Do you have the patch somewhere?
Could you tell us how to patch?
Thanks in advance.

from hotswapagent.

skybber avatar skybber commented on June 23, 2024

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.

victorpablosceruelo avatar victorpablosceruelo commented on June 23, 2024

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.

skybber avatar skybber commented on June 23, 2024

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.

PrabakaranSK avatar PrabakaranSK commented on June 23, 2024

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

cchilds avatar cchilds commented on June 23, 2024

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.

victorpablosceruelo avatar victorpablosceruelo commented on June 23, 2024

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.

cchilds avatar cchilds commented on June 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.