Skip to content

Instantly share code, notes, and snippets.

@layerssss
Created June 11, 2020 03:02
Show Gist options
  • Save layerssss/0decdc29fe5ddbf0bb51fb73e7979ec9 to your computer and use it in GitHub Desktop.
Save layerssss/0decdc29fe5ddbf0bb51fb73e7979ec9 to your computer and use it in GitHub Desktop.
swarmpit memory leak log
app:
image: swarmpit/swarmpit:1.9
healthcheck:
test:
- CMD
- curl
- -f
- -H
- "Authorization: Bearer XXXXXXX"
- http://localhost:8080/api/services
interval: 60s
timeout: 3s
retries: 3
environment:
SWARMPIT_DB: http://db:5984
SWARMPIT_INFLUXDB: http://influxdb:8086
ports:
- 888:8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
networks:
- net
logging:
driver: json-file
deploy:
update_config:
delay: 10s
order: start-first
placement:
constraints:
- node.role == manager
- node.hostname != mic-ubuntu
resources:
reservations:
cpus: "0.1"
memory: 300M
limits:
cpus: "0.4"
memory: 1024M
Jun 11, 2020 12:12:04 AM swarmpit.server invoke
INFO: Swarmpit is starting...
Jun 11, 2020 12:12:04 AM swarmpit.database invoke
INFO: Waiting for CouchDB ...
Jun 11, 2020 12:12:04 AM swarmpit.database invoke
INFO: ... connected after 0 sec
Jun 11, 2020 12:12:05 AM swarmpit.database invoke
INFO: Waiting for InfluxDB ...
Jun 11, 2020 12:13:00 AM swarmpit.database invoke
INFO: ... connected after 54 sec
Jun 11, 2020 12:13:01 AM swarmpit.database invoke
INFO: InfluxDB RP: #{autogen an_hour a_day}
Jun 11, 2020 12:13:01 AM swarmpit.database invoke
INFO: InfluxDB CQ: #{}
Jun 11, 2020 12:13:01 AM swarmpit.server invoke
INFO: Swarmpit running on port 8080
Jun 11, 2020 12:13:02 AM swarmpit.setup invoke
INFO: Docker API: 1.40
Jun 11, 2020 12:13:02 AM swarmpit.setup invoke
INFO: Docker ENGINE: 19.03.11
Jun 11, 2020 12:13:02 AM swarmpit.setup invoke
INFO: Docker SOCK: /var/run/docker.sock
Exception in thread "async-dispatch-2" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuilder.append(StringBuilder.java:136)
at clojure.core$str$fn__5451.invoke(core.clj:557)
at clojure.core$str.invokeStatic(core.clj:555)
at clojure.core$str.doInvoke(core.clj:544)
at clojure.lang.RestFn.invoke(RestFn.java:439)
at swarmpit.event.channel$event_data.invokeStatic(channel.clj:18)
at swarmpit.event.channel$event_data.invoke(channel.clj:16)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309$fn__19317.invoke(channel.clj:77)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309.invoke(channel.clj:73)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307.invoke(channel.clj:71)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
at swarmpit.event.channel$broadcast_statistics$fn__19306.invoke(channel.clj:71)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "async-dispatch-6" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuilder.append(StringBuilder.java:136)
at clojure.core$str$fn__5451.invoke(core.clj:557)
at clojure.core$str.invokeStatic(core.clj:555)
at clojure.core$str.doInvoke(core.clj:544)
at clojure.lang.RestFn.invoke(RestFn.java:439)
at swarmpit.event.channel$event_data.invokeStatic(channel.clj:18)
at swarmpit.event.channel$event_data.invoke(channel.clj:16)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309$fn__19317.invoke(channel.clj:77)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309.invoke(channel.clj:73)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307.invoke(channel.clj:71)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
at swarmpit.event.channel$broadcast_statistics$fn__19306.invoke(channel.clj:71)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "async-dispatch-3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-5" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-7" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-11" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-4" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-13" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-10" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-16" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-18" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-19" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-20" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-17" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-9" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-15" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-12" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-14" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-24" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-21" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-8" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-28" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-29" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-31" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-25" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-26" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-27" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-23" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-30" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-35" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-38" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-32" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-33" clojure.lang.ExceptionInfo: Docker error: Request timeout {:status 408, :type :http-client, :body {:error "Request timeout"}}
at swarmpit.http$execute_in_scope.invokeStatic(http.clj:85)
at swarmpit.http$execute_in_scope.invoke(http.clj:54)
at swarmpit.docker.engine.http$execute.invokeStatic(http.clj:39)
at swarmpit.docker.engine.http$execute.invoke(http.clj:37)
at swarmpit.docker.engine.client$tasks.invokeStatic(client.clj:118)
at swarmpit.docker.engine.client$tasks.invoke(client.clj:116)
at swarmpit.api$tasks.invokeStatic(api.clj:733)
at swarmpit.api$tasks.invoke(api.clj:731)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.AFn.applyTo(AFn.java:144)
at clojure.core$apply.invokeStatic(core.clj:665)
at clojure.core$apply.invoke(core.clj:660)
at clojure.core.memoize$through_STAR_$fn__2999.invoke(memoize.clj:81)
at clojure.core.cache$through$fn__2750.invoke(cache.clj:55)
at clojure.core.memoize$through_STAR_$fn__2995$fn__2996.invoke(memoize.clj:80)
at clojure.core.memoize.RetryingDelay.deref(memoize.clj:64)
at clojure.core$deref.invokeStatic(core.clj:2320)
at clojure.core$deref.invoke(core.clj:2306)
at clojure.core.memoize$build_memoizer$fn__3058.doInvoke(memoize.clj:167)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at clojure.lang.AFn.applyToHelper(AFn.java:152)
at clojure.lang.RestFn.applyTo(RestFn.java:132)
at clojure.lang.AFunction$1.doInvoke(AFunction.java:31)
at clojure.lang.RestFn.invoke(RestFn.java:397)
at swarmpit.event.rules.subscription$reify__19144.subscribed_data(subscription.clj:137)
at swarmpit.event.channel$broadcast$fn__19246$state_machine__12108__auto____19257$fn__19259$fn__19262.invoke(channel.clj:65)
at swarmpit.event.channel$broadcast$fn__19246$state_machine__12108__auto____19257$fn__19259.invoke(channel.clj:60)
at swarmpit.event.channel$broadcast$fn__19246$state_machine__12108__auto____19257.invoke(channel.clj:58)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
at clojure.core.async.impl.ioc_macros$take_BANG_$fn__12126.invoke(ioc_macros.clj:986)
at clojure.core.async.impl.channels.ManyToManyChannel$fn__8392.invoke(channels.clj:265)
at clojure.lang.AFn.run(AFn.java:22)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Exception in thread "async-dispatch-34" java.lang.OutOfMemoryError: Java heap space
Exception in thread "async-dispatch-43" clojure.lang.ExceptionInfo: Docker error: Request timeout {:status 408, :type :http-client, :body {:error "Request timeout"}}
at swarmpit.http$execute_in_scope.invokeStatic(http.clj:85)
at swarmpit.http$execute_in_scope.invoke(http.clj:54)
at swarmpit.docker.engine.http$execute.invokeStatic(http.clj:39)
at swarmpit.docker.engine.http$execute.invoke(http.clj:37)
at swarmpit.docker.engine.client$services.invokeStatic(client.clj:30)
at swarmpit.docker.engine.client$services.invoke(client.clj:28)
at swarmpit.api$service_tasks.invokeStatic(api.clj:846)
at swarmpit.api$service_tasks.invoke(api.clj:842)
at swarmpit.event.rules.subscription_stats$subscribed_data.invokeStatic(subscription_stats.clj:57)
at swarmpit.event.rules.subscription_stats$subscribed_data.invoke(subscription_stats.clj:50)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309$fn__19317.invoke(channel.clj:76)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307$fn__19309.invoke(channel.clj:73)
at swarmpit.event.channel$broadcast_statistics$fn__19306$state_machine__12108__auto____19307.invoke(channel.clj:71)
at clojure.core.async.impl.ioc_macros$run_state_machine.invokeStatic(ioc_macros.clj:973)
at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(ioc_macros.clj:972)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invokeStatic(ioc_macros.clj:977)
at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.invoke(ioc_macros.clj:975)
at swarmpit.event.channel$broadcast_statistics$fn__19306.invoke(channel.clj:71)
at clojure.lang.AFn.run(AFn.java:22)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment