Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No match found on RHEL 6.6 #36

Open
fernandoacorreia opened this issue Mar 31, 2015 · 0 comments
Open

No match found on RHEL 6.6 #36

fernandoacorreia opened this issue Mar 31, 2015 · 0 comments

Comments

@fernandoacorreia
Copy link

On a Red Hat Enterprise Linux 6.6 instance on EC2 (official AMI) there is a "No match found" error on line 61 of LinuxMonitor:

String totalMemory = this.fileUtils.runRegexOnFile(TOTAL_MEMORY_PATTERN, "/proc/meminfo");

Example:

# wget http://continuousdelivery.com/downloads/javasysmon/javasysmon-0.3.5.jar

# java -jar javasysmon-0.3.5.jar 
Exception in thread "main" java.lang.IllegalStateException: No match found
    at java.util.regex.Matcher.group(Matcher.java:485)
    at com.jezhumble.javasysmon.FileUtils.runRegexOnFile(FileUtils.java:102)
    at com.jezhumble.javasysmon.LinuxMonitor.osName(LinuxMonitor.java:61)
    at com.jezhumble.javasysmon.JavaSysMon.main(JavaSysMon.java:86)

# cat /proc/meminfo
MemTotal:       15297732 kB
MemFree:          296828 kB
Buffers:          383488 kB
Cached:         12165856 kB
SwapCached:            0 kB
Active:          2534768 kB
Inactive:       10721032 kB
Active(anon):     702588 kB
Inactive(anon):      396 kB
Active(file):    1832180 kB
Inactive(file): 10720636 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                40 kB
Writeback:             0 kB
AnonPages:        702436 kB
Mapped:            56456 kB
Shmem:               548 kB
Slab:            1608436 kB
SReclaimable:    1451696 kB
SUnreclaim:       156740 kB
KernelStack:        8144 kB
PageTables:        11024 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     7648864 kB
Committed_AS:    9523248 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       50292 kB
VmallocChunk:   34359628404 kB
HardwareCorrupted:     0 kB
AnonHugePages:    434176 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        6144 kB
DirectMap2M:    15722496 kB

# cat /etc/lsb-release
LSB_VERSION=base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)

# uname -a
Linux rh-fernando 2.6.32-504.8.1.el6.x86_64 #1 SMP Fri Dec 19 12:09:25 EST 2014 x86_64 x86_64 x86_64 GNU/Linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant