2

I have a problem using wildfly swarm for build micro service in java. My main problem is the excess use memory. When wildfly is deployed this consume almost 500 mb of memory. Someone have a possible solution for resolve it?

thanks!

tom redfern
  • 30,562
  • 14
  • 91
  • 126
capablaza
  • 21
  • 1
  • 1
    Can you give us some ideas about what it is your application does? How many swarm "fractions" are you using (i.e., JPA, EJB, etc.)? – stdunbar May 09 '17 at 15:18
  • bom-all wildfly-swarm-plugin junit jboss-jaxrs-api_2.0_spec cdi-api postgresql swagger-annotations swagger-jaxrs jersey-media-json-jackson jboss-ejb-api_3.2_spec logback-classic lombok postgresql commons-beanutils commons-lang3 – capablaza May 10 '17 at 18:46
  • what kind of memory? heap? native? Is this before full GC or after? try connecting with jconsole to the app and see what are exact memory usages. – Tomaz Cerar May 10 '17 at 22:29
  • That hardly seems like a "micro" service. 500MB honestly doesn't seem too bad given things like swagger and ejb. Are you running on an extremely small machine? – stdunbar May 11 '17 at 01:11
  • the micro services run on docker in ecs used on AWS. But if i compare with other technology like Vertx the difference I really hard. What think about it? – capablaza May 11 '17 at 02:18
  • So that is yet another variable. What kind of Docker base image? A full Ubuntu base with just openjdk is a bit over 300MB on my machine. Add Wildfly swarm with the very large set of inclusions you have and it's pretty easy to hit 500MB. I happen to use Wildfly Swarm in ECS on AWS and yes, the image sizes are about as you describe and yes, it takes some memory. If there solutions that can do everything you're getting with Wildfly and are more in line with what you're looking for, I'd use them instead. – stdunbar May 15 '17 at 01:00
  • Thank you guys for all answer. Have a nice day. – capablaza May 15 '17 at 20:28
  • The amount of memory WF Swarm consumes is something that we're in the process of looking into further – Ken May 19 '17 at 19:35

0 Answers0