You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 29, 2022. It is now read-only.
When the Jboss scanner tasks that use a 'find' command run on large filesystems the commands take a long time to complete (sometimes days) causing the script to appear hung.
Yes, I added this to the JBoss scanner last week but today I had feedback that a customer is running JBoss in /opt which is a separate filesystem for them.
I think we should still use -xdev but may include some of the common directories in the find command in case they are on separate filesystems.
E.g.
FOUND=""; for jar in `find / /opt /app -xdev -name 'jboss-modules.jar' 2>/dev/null | grep -v '\.installation/patches'`; do VERSION=$(java -jar ${jar} -version 2> /dev/null | grep version | sed 's/.*version\s//g'); inode=$(stat -c '%i' "${jar}"); fs=$(df -T "${jar}" | grep "/dev" | sed 's/ .*//'); ctime=$(stat ${jar} | grep 'Change' | grep -oP '[1-2][0-9]{3}-[0-1][0-9]-[0-3][0-9]'); if [ ! -z "${VERSION}" ]; then if [ ! -z "$FOUND" ]; then FOUND="$FOUND; $VERSION**$ctime"; else FOUND=${VERSION}'**'${ctime}; fi; fi; done; echo ${FOUND}
@mdvickst Ok. To sum up we can add the -xdev option to the find commands, but when we do we should expand our default for the --scan-dirs option to be ['/', '/opt', '/app'].
Sound good?
Specify type:
Description:
When the Jboss scanner tasks that use a 'find' command run on large filesystems the commands take a long time to complete (sometimes days) causing the script to appear hung.
Related to #273
Bug Report
Version of rho:
ALL
Environment information:
Target filesytem was NFS and below is the size and path.
I have tested scanning an NFS filesystem with EAP 7.0 in the share mounted on /jboss and when the -xdev option is used that directory is not scanned.
Below if the commands I used.
The text was updated successfully, but these errors were encountered: