Skip to content
Advertisement

Tag: java

CMS GC – How to profile young gen heap?

I’m able to use jmap command to dump JVM memory heap. The issue is, I have a program with heavier young gen GC activities compared to the previous version when checking from the GC logs, and when I ran memory profiler, the biggest objects are always the ones in the old gen. So it makes troubleshooting more difficult when you

How to use org.springframework.messaging.converter.ProtobufMessageConverter

I was trying to use Spring framework built-in ProtobufMessageConverter to convert my kafka message but I couldn’t seem to find a way to have this converter being used. The configuration of my binding is as the following: When I use my custom message converter, I can see it registered in SimpleFunctionRegistry.messageConverter which is a list of customer converter and default

IllegalArgumentException at MetamodelImpl.java gradle build error

I keep on getting a IllegalArgumentException at MetamodelImpl.java and I am not sure what is causing it. I pulled a brand new Spring project from start spring io just with basic Web, Lombok and JPA dependencies. I tried building it with gradle doing ./gradlew clean build and it keep throwing this error. Here is my build.gradle: and my gradle wrapper.properties:

How to pass value from a fragment/activity to xml?

So I know data can be passed using intent between activities and fragments, but is there a way to pass the value to some XML files? Say, I have the name and email from the login page, and I can pass it from from loginActivity to mainActivity (navigation) panel, but is there a way to pass it to strings.xml in

Advertisement