Tag: java

Increase HeapSize in Tomcat for all my applications

I’m using a tomcat:8 inside docker. This are some important settings (default). $ java -XX:+PrintFlagsFinal -version | grep -iE ‘HeapSize|PermSize|ThreadStackSize’ Picked up JAVA_TOOL_OPTIONS: -Duser.home=/home/jboss -Duser.name=jboss intx CompilerThreadStackSize = 0 {pd product} uintx ErgoHeapSizeLimit = 0 {product} uintx HeapSizePerGCThread = 87241520 {product} uintx InitialHeapSize := 33554432 {product} uintx LargePageHeapSizeThreshold = 134217728 {product} uintx MaxHeapSize := 524288000 […]

Error when running SparkApp from docker container against Spark running in another container

I have a problem that’s bothering me for a few days, and I’m pretty out of ideas. I built a Spark docker container where Spark runs in standalone mode. Both master and worker are started there. This is machine running in Azure. Now I tried to deploy my Spark Scala App in a separate container(same […]

Adding Java to Boot2Docker Linux VM?

I have images which are based on Alpine Linux with only JRE, and I’d like to be able to debug some through the host machine on Boot2Docker’s Tiny Core Linux VM. Is this possible, or is there a better way, besides adding JDK right into the container? I’m having trouble finding out how to get […]

Nginx Docker On ElasticBeanstalk: No Such File Or Directory

I have an nginx docker. Here’s the Dockerfile: FROM nginx RUN rm /etc/nginx/conf.d/default.conf COPY nginx.conf /etc/nginx/nginx.conf COPY server.8079.conf /etc/nginx/conf.d CMD nginx Everything runs fine when I run this via the docker run command; both /var/lib/nginx and /var/log/nginx exist with the correct permissions, log files are created in /var/log/nginx, and /var/lib/nginx/logs is a symlink that points […]

Pulling image from Amazon ECR using docker-java

I am facing an issue with pulling image from Amazon ECR using docker–java client. The authentication of ECR registry login is successful, but unable to pull a specific image from the repository. Strange thing is that logging into ECR using bash and pulling image using docker works. I am using 3.0 version of java-docker library […]

Jenkins deploying war file to tomcat docker container

I’m trying deploy a WAR file to tomcat docker container. Here config.xml : <?xml version=’1.0′ encoding=’UTF-8′?> <project> <actions/> <description></description> <keepDependencies>false</keepDependencies> <properties/> <scm class=”hudson.plugins.git.GitSCM” plugin=”git@2.4.3″> <configVersion>2</configVersion> <userRemoteConfigs> <hudson.plugins.git.UserRemoteConfig> <url>https://github.com/spring-projects/spring-petclinic.git</url> </hudson.plugins.git.UserRemoteConfig> </userRemoteConfigs> <branches> <hudson.plugins.git.BranchSpec> <name>*/master</name> </hudson.plugins.git.BranchSpec> </branches> <doGenerateSubmoduleConfigurations>false</doGenerateSubmoduleConfigurations> <submoduleCfg class=”list”/> </scm> <canRoam>true</canRoam> <disabled>false</disabled> <blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding> <blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding> <triggers/> <concurrentBuild>false</concurrentBuild> <builders> <hudson.tasks.Maven> <targets>clean package</targets> <mavenName>3.3.9</mavenName> <usePrivateRepository>false</usePrivateRepository> <settings class=”jenkins.mvn.DefaultSettingsProvider”/> <globalSettings class=”jenkins.mvn.DefaultGlobalSettingsProvider”/> […]

NginX times out connecting to java app

I have a Docker container running YaCy (source: https://hub.docker.com/r/luccioman/yacy/) , a java/Solr based P2P and local search engine. It runs fine if I try access it locally (e.g with curl) over 10.x.x.x network, including from the webserver itself, but as soon as nginx needs to forward it, NginX times out with error 504 after 30 […]

Best way of deploying a java app on Marathon

As far as I understand how it works, I see two slightly different methods : Method 1 build a docker image containing all the stuff I need for my java app (the JAR for my app and the various JARs libraries). push the docker image on a repository (dockerhub) give the name of the image […]

Move file from Docker container to Host system in Jenkins

I have configured Jenkins in Docker container. I am able to take a build. After a build I want to move WAR file into my Tomcat server which is running in host system. I have added copy command in post build task. Jenkins is not able to move the WAR to host system , since […]

Debate on using heavy duty java rest service on docker, should we switch?

As we are moving on docker, the first thing we tried is to run our existing (tomcat+java rest service + mysql server) app in a docker container. We tried to restrict our app (on tomcat level and on docker level), to use only 512 MB of RAM. We failed! tomcat could not launch the war […]

Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.