Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 9545 - Missing "mem:" line /proc/meminfo breaks gentoo-stats
Summary: Missing "mem:" line /proc/meminfo breaks gentoo-stats
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Bugzilla (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: John Davis (zhen) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-23 06:23 UTC by Xavier
Modified: 2011-10-30 23:14 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Xavier 2002-10-23 06:23:29 UTC
My /proc/meminfo does not display (any more) the two lines starting respectively
with "mem:" and "swap:" (is it because I run latest 2.5.44 kernel?)

cat /proc/info
MemTotal:       127412 kB
MemFree:         81872 kB
MemShared:           0 kB
Buffers:          8896 kB
Cached:          27992 kB
SwapCached:          0 kB
Active:          29080 kB
Inactive:        10032 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:       127412 kB
LowFree:         81872 kB
SwapTotal:      524152 kB
SwapFree:       524152 kB
Dirty:               0 kB
Writeback:           0 kB
Mapped:           5084 kB
Slab:             5080 kB
Committed_AS:     9856 kB
PageTables:        192 kB
ReverseMaps:      2972

gentoo-stats relies on these lines instead of those starting with MemTotal and
SwapTotal.
Even with SUBMIT_MEMORY set to "no" in my gentoo-stats.conf, the server keeps
rejecting my updates:
...Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server
Error...java.lang.NumberFormatException: For input string: ""
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Long.parseLong(Long.java:344)
	at java.lang.Long.parseLong(Long.java:381)
	at org.gentoo.stats.StatsServlet.processMemTotal(StatsServlet.java:782)
...
Comment 1 Maik Schreiber 2002-10-23 20:19:35 UTC
This has been fixed both server-side and client-side (gentoo-stats-0.3.2).
Thanks for reporting this bug!