read file error (brk)
inung
inung at agrakom.com
Tue Dec 20 09:51:09 CET 2005
dear all,
i have an application parsing some xml and then create other new xml. my app didn't error, but it uses more resource (the highest peak about 98%CPU!) than a week ago. and when i use strace, i got the messages below:
getcwd("/home/users/bbm/app/content", 4096) = 34
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=96, ...}) = 0
lstat64("/home/users", {st_mode=S_IFDIR|0755, st_size=264, ...}) = 0
lstat64("/home/users/bbm", {st_mode=S_IFDIR|0745, st_size=1016, ...}) = 0
lstat64("/home/users/bbm/app", {st_mode=S_IFDIR|0755, st_size=280, ...}) = 0
lstat64("/home/users/bbm/app/xml", {st_mode=S_IFDIR|0777, st_size=1232, ...}) = 0
lstat64("/home/users/bbm/app/xml/nt_app.xml", {st_mode=S_IFREG|0777, st_size=85489, ...}) = 0
open("/home/users/bbm/app/xml/nt_app.xml", O_RDONLY) = 8
fstat64(8, {st_mode=S_IFREG|0777, st_size=85489, ...}) = 0
lseek(8, 0, SEEK_CUR) = 0
read(8, "*<?xml* version=\"1.0\"*?>*\n*<content>*"..., 8192) = 8192
brk(0) = 0x19cd5000
brk(0x19cd7000) = 0x19cd7000
brk(0) = 0x19cd7000
brk(0x19cd8000) = 0x19cd8000
brk(0) = 0x19cd8000
brk(0x19cd9000) = 0x19cd9000
brk(0) = 0x19cd9000
brk(0x19cda000) = 0x19cda000
....
....
....
what should i do to solve this problem? i'm using Trustik Secure Linux 2.2.
regards,
~inung;
More information about the Arla-drinkers
mailing list