jamiejackson
12/04/2024, 8:09 PMbdw429s
12/04/2024, 8:10 PMbdw429s
12/04/2024, 8:11 PMbdw429s
12/04/2024, 8:11 PMjamiejackson
12/04/2024, 8:15 PMbdw429s
12/04/2024, 8:35 PMjstack
which comes in the bin folder of any JDKbdw429s
12/04/2024, 8:35 PMjstack -l <PID>
bdw429s
12/04/2024, 8:36 PMjamiejackson
12/05/2024, 4:53 PMbdw429s
12/05/2024, 4:56 PMbdw429s
12/05/2024, 4:56 PMjamiejackson
12/05/2024, 4:57 PMbdw429s
12/05/2024, 4:57 PMbdw429s
12/05/2024, 4:57 PMbdw429s
12/05/2024, 4:57 PMbdw429s
12/05/2024, 4:57 PMbdw429s
12/05/2024, 4:57 PMjamiejackson
12/05/2024, 4:58 PMjamiejackson
12/05/2024, 4:59 PMbdw429s
12/05/2024, 4:59 PMbdw429s
12/05/2024, 5:00 PMbdw429s
12/05/2024, 5:00 PMjamiejackson
12/05/2024, 5:01 PMbdw429s
12/05/2024, 5:01 PMbdw429s
12/05/2024, 5:01 PMjamiejackson
12/05/2024, 5:01 PMjamiejackson
12/05/2024, 5:02 PMbdw429s
12/05/2024, 5:03 PMbdw429s
12/05/2024, 5:03 PMjamiejackson
12/05/2024, 5:04 PMbdw429s
12/05/2024, 5:04 PMbdw429s
12/05/2024, 5:04 PMjamiejackson
12/05/2024, 5:04 PMbdw429s
12/05/2024, 5:05 PMbdw429s
12/05/2024, 5:05 PMbdw429s
12/05/2024, 5:05 PMbox info
how long it takesjamiejackson
12/05/2024, 5:06 PMjamiejackson
12/05/2024, 5:06 PMbdw429s
12/05/2024, 5:07 PMjamiejackson
12/05/2024, 5:08 PMbdw429s
12/05/2024, 5:15 PMjamiejackson
12/05/2024, 5:23 PMjamiejackson
12/05/2024, 5:23 PMbdw429s
12/05/2024, 5:24 PMbdw429s
12/05/2024, 5:25 PMbdw429s
12/05/2024, 5:25 PMinfo
command, I just wanted to rule out the CFConfig portions and test if Lucee starting up was slow all on its ownjamiejackson
12/05/2024, 5:48 PM### CFConfig Setup #################################
# Install dependencies
RUN apt-get update && \
apt-get install -y curl gnupg unzip && \
rm -rf /var/lib/apt/lists/*
# Add CommandBox GPG key and repository
RUN curl -fsSL <https://downloads.ortussolutions.com/debs/gpg> | apt-key add - && \
echo "deb <https://downloads.ortussolutions.com/debs/noarch> /" | tee /etc/apt/sources.list.d/commandbox.list
# Update package list and install CommandBox
RUN apt-get update && \
apt-get install -y commandbox && \
rm -rf /var/lib/apt/lists/*
# Install CFConfig
RUN box install commandbox-cfconfig
#===================================================#
jamiejackson
12/05/2024, 5:53 PMvagrant@local:~$ time docker exec -it $(get_a_container_id_from_service.sh hudx_local_lucee-manager) bash -c 'box info'
Current version higher than installed version!
*current: 6.1.0
installed: 6.0.0
*updating installed jars
Library path: /root/.CommandBox/lib
Initializing libraries -- this will only happen once, and takes a few seconds...
Cleaning old Felix Cache...
.........
Libraries initialized
****************************************************************************************************
* About CommandBox *
****************************************************************************************************
* *
* *
* CommandBox Version: 6.1.0+00813 *
* CommandBox Authors: Brad Wood, Luis Majano, Denny Valiant *
* CommandBox Binary /usr/local/bin/box *
* CommandBox Home /root/.CommandBox *
* CFML Engine: Lucee *
* CFML Version: 5.4.6.9 stable (Gelert) *
* Java Version: 11.0.20 (Eclipse Adoptium) *
* Java Path: /opt/java/openjdk/bin/java *
* OS Username root *
* JLine Terminal org.jline.terminal.impl.PosixSysTerminal *
* Runwar Version 5.0.8 (/root/.CommandBox/lib/runwar-5.0.8.jar) *
* *
* *
****************************************************************************************************
Here is an ASCII art stereogram.
Stare at it and diverge your eyes (the opposite of crossing them)
If you can't see it, you can come back later.
This image will be here all day. Tomorrow holds a new day and a new image.
@ @ @ @
.GHu>K@i>g@y+$Y.GHu>K@i>g@y+$Y.GHu>K@i>g@y+$Y.GHu>K@i>g@y+$Y.GHu>K@i>g@y+
yno$]J+hI2g0&O@yno$]J+hI2g0&O@yno$]J+hI20&O@yno$]JJ+hI20&O@yno$]JJ+hI20&O
|IBOxmr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(**Cxm.77I2OO@f(**C
v;@1>/0%B_0Iw@!v;@1>/0%B_0Iw@v;@1>/%B_00Iw@v;@1>/%B00Iww@v;@11>/%B00Iww@v
aRK|MV3d)&7("/0aRK|MV3d)&7("/0aK|MV3d&7("/0aK|MV3d&7(("/0aK||MV3d&7(("/0a
$evW85:WL%zCQnk$evW85:WL%zCQnk$eW85:WL%zQnk$eW85::WL%zQnk$eeW85::WL%zQnk$
Gt!bs<m.CHIFT)2Gt!bs<m.CHIFT)2Gt!b<m.CHIFT)2Gt!b<m.CHIFT))2Gt!b<m.CHIFT))
JcPe^stE6gD1WXeJcPe^stE6gD1WXeJcPe^st6gD1WXeJcPe^st6gDD1WXeJcPe^st6gDD1WX
ildea<'d!>m<S>gildea<'d!>m<S>gildea<'d!>mS>gildea<S'd!>mS>gildea<S'd!>mS>
TQn#PA&{h9jKE6STQn#PA&{h9jKE6STQn#PA&{h9jKE6STQn#PA&{h9jKE6STQn#PA&{h9jKE
real 4m24.330s
user 0m0.073s
sys 0m0.123s
jamiejackson
12/05/2024, 6:10 PMbdw429s
12/05/2024, 6:12 PMbdw429s
12/05/2024, 6:12 PMbdw429s
12/05/2024, 6:12 PMbdw429s
12/05/2024, 6:13 PMjamiejackson
12/05/2024, 6:13 PMCurrent version higher than installed version!
*current: 6.1.0
installed: 6.0.0
*updating installed jars
Library path: /root/.CommandBox/lib
Initializing libraries -- this will only happen once, and takes a few seconds...
Cleaning old Felix Cache...
.........
Libraries initialized
bdw429s
12/05/2024, 6:13 PMbdw429s
12/05/2024, 6:14 PMbdw429s
12/05/2024, 6:14 PMbdw429s
12/05/2024, 6:14 PMbdw429s
12/05/2024, 6:15 PMjamiejackson
12/05/2024, 6:16 PM#!/usr/bin/env bash
# use cfconfig to translate the cfconfig.json file to the web configuration format that lucee expects
{ \
time box cfconfig import \
from=/tmp/cfconfig.json \
to="${LUCEE_WEB_DIR}" \
toFormat=LuceeWeb@5.1 ; \
} \
> /tmp/cfconfig_stdout.log \
2> /tmp/cfconfig_stderr.log
jamiejackson
12/05/2024, 6:17 PMbdw429s
12/05/2024, 6:17 PMbdw429s
12/05/2024, 6:18 PMbdw429s
12/05/2024, 6:21 PMroot@97d03dd4aaca:/# java --version
bash: java: command not found
bdw429s
12/05/2024, 6:22 PMjamiejackson
12/05/2024, 6:23 PMlucee/lucee:5.4.3.2-light-tomcat9.0-jdk11-temurin-jammy
, pls. that's the image i'm using.bdw429s
12/05/2024, 6:23 PMbdw429s
12/05/2024, 6:23 PMbdw429s
12/05/2024, 6:23 PMjamiejackson
12/05/2024, 6:25 PMsudo apt install openjdk-11-jdk
^ that's right after the commandbox package installation instructionsbdw429s
12/05/2024, 6:28 PMbdw429s
12/05/2024, 6:28 PMbdw429s
12/05/2024, 6:29 PMbox info
. it completed in just a few seconds and didn't say anything at all about having an our of date binary
root@fe8802c0d446:/usr/local/tomcat# box info
Configuring CommandBox home: /root/.CommandBox (change with -CommandBox_home=/path/to/dir)
Library path: /root/.CommandBox/lib
Initializing libraries -- this will only happen once, and takes a few seconds...
...
Libraries initialized
****************************************************************************************************
* About CommandBox *
****************************************************************************************************
...
bdw429s
12/05/2024, 6:30 PMbox info
take just a few seconds and there are upgrade warningsjamiejackson
12/05/2024, 6:31 PMjamiejackson
12/05/2024, 6:36 PMbox info
.
root@c834f2554ac5:/usr/local/tomcat# time box info
****************************************************************************************************
* About CommandBox *
****************************************************************************************************
* *
* *
* CommandBox Version: 6.1.0+00813 *
* CommandBox Authors: Brad Wood, Luis Majano, Denny Valiant *
* CommandBox Binary /usr/local/bin/box *
* CommandBox Home /root/.CommandBox *
* CFML Engine: Lucee *
* CFML Version: 5.4.6.9 stable (Gelert) *
* Java Version: 11.0.20 (Eclipse Adoptium) *
* Java Path: /opt/java/openjdk/bin/java *
* OS Username root *
* JLine Terminal org.jline.terminal.impl.PosixSysTerminal *
* Runwar Version 5.0.8 (/root/.CommandBox/lib/runwar-5.0.8.jar) *
* *
* *
****************************************************************************************************
Here is an ASCII art stereogram.
Stare at it and diverge your eyes (the opposite of crossing them)
If you can't see it, you can come back later.
This image will be here all day. Tomorrow holds a new day and a new image.
SNIPPED OUT
real 0m12.333s
user 0m19.106s
sys 0m3.064s
jamiejackson
12/05/2024, 6:36 PMjamiejackson
12/05/2024, 8:28 PM# swarm config
...
deploy:
resources:
limits:
cpus: '0.2'
but apparently commandbox (even box info
) is fairly CPU-intensive. if i increase cpus
to 1
, i get more reasonable execution time (14s
for box info
).
i can bump up the resources but it's kind of a shame that cfconfig
requires the container to have a bumped-up resource allocation just for a fleeting entrypoint process.bdw429s
12/05/2024, 8:39 PMjamiejackson
12/05/2024, 9:01 PMbox info
normally, whereas the other one needs more resources to do the same.
so something's different, but i don't know what. i'm just going to bump up the resources on the weird service and call it a day. maybe i'll revisit it in the future to find the root cause if i work up the energy.