In our support boards we aim to provide support for the B3 core in its current state. Older releases of B3 are NOT supported. Check our front page for the latest version. You may post feature requests in our General Discussion board. Modifications and Hacks of the core B3 code are NOT supported.
Before you ask for support: [ Read the Support Instructions ] - More info: [ Full Support Disclaimer ]

Pages: [1] 2 3   Go Down
  Print  
Author Topic: Hello python problems  (Read 2818 times) Bookmark and Share
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« on: April 26, 2010, 10:40:18 AM »

I have a problem with python and opened me up too much with the processes of this program is normal. ? I fill very fast memory is this normal?
python 2.5
external database

« Last Edit: April 26, 2010, 11:11:30 AM by NIKO » Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: April 26, 2010, 11:04:06 AM »

Hi Niko, welcome

the default htop settings show all user threads. You're seeing python threads, not python processes.
Have a look at htop settings menu, you can enable 'hide userland threads';  also I advise you to enable the 'Tree view'.
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #2 on: April 26, 2010, 11:08:49 AM »

OK. A memory is filling this normal?
Is it resets some level? he sees that the cache B3
sry my eng
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: April 26, 2010, 11:32:29 AM »

memory filling is not normal. It is a known bug but we've been unable to tell exactly why this happens on some servers and not on others.

Can you provide as much details as possible on your system ? (OS, OS version, kernel version, python version, python-mysqldb version, B3 version, b3/parsers/bfbc2/__init__.py version, and anything you think might help narrow down the issue)

Can you also try after disabling the welcome plugin ? It seems that the memory issue only arise when this plugin is enabled.

Also note that B3 has evolved almost daily since the 1.3 release, specially for the BFBC2 part. Please use the latest development code you can find on our github.com repositories.

Also refer to post tagged with 'memory'
« Last Edit: April 26, 2010, 11:35:52 AM by Courgette » Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #4 on: April 26, 2010, 12:54:22 PM »

Debian 5.0
python 2.5
python-mysql ---
B3-1.3
bfbc2 -1.2.6
welcome plugin off
on only
-admin
-censor
-spam
-adv

Clogging the memory is if the bot in action is idle if it is running all the time with the same amount of memory usage.

1.3 When will the bfbc2
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #5 on: April 26, 2010, 01:07:20 PM »

what do you mean by when the bot is idle ?

Have you installed python from the stable package repositories ?
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #6 on: April 26, 2010, 01:38:32 PM »

When there is nobody on the server or any admin does nothing but play without typing commands and adding warn
y do not know if it is, but apt-get install *
* Python
* Python-mysql
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #7 on: April 27, 2010, 01:52:22 PM »

plz help
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #8 on: April 27, 2010, 02:19:34 PM »

hold on Smiley

I just installed tonight a new VM with Debian 5.0 and python 2.5 to try to reproduce your environment.
my Debian is 64bit. Is your 32 or 64 ?
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #9 on: April 27, 2010, 02:44:51 PM »

debian-5.0-i386-minimal

32bit

not test debian-5.0-x86
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #10 on: April 27, 2010, 02:49:28 PM »

is your mysql database server hosted on the same machine ?
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #11 on: April 27, 2010, 02:52:28 PM »

no in the same datacenter ping is 0.0300 ms max combined external

To see this you need a bot activities kick, warn, welcome.itp

plugin welcome is off
« Last Edit: April 27, 2010, 02:54:33 PM by NIKO » Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3478
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #12 on: April 27, 2010, 03:02:21 PM »

what command do you use to see how much memory B3 is taking ?

Can you make a hourly cron task that would write the output of this command into a log file ?

Also can you post the ouput of the memstat command once you notice that B3 take huge amount of memory ? (apt-get install memstat)

Also I'd like to point out that in the screenshot you provided, the multiple 183M of VIRT are memory shared by the threads of a unique process. The total memory for the process is 183M and not 183M x 16
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: BF3
Posts: 212
Offline Offline
WWW
« Reply #13 on: April 27, 2010, 03:15:43 PM »

Memory status checked by the HyperVM panel.

After an 1hr b3 increases from 60mb to 80mb and póxniej it depends how it is used on the server after 22h can take 240MB RAM-40mbsys same B3 = 200

long as it takes bot? so after 22h using

and how best the system by testing
I have to choose
CentOS 5
debian 4.0
debian 5.0
Fedora 8

Ubuntu 8.10
Logged

Very sorry for my English I do not know him enough to be understood.
That is why I use the google translator.
B3 Contrib/Support
*
OS: Linux
Type: Home user
Gameservers: Over see 25 URT servers / B3 servers (not all mine)
Posts: 339
Offline Offline
WWW
« Reply #14 on: April 27, 2010, 03:42:21 PM »

Memory status checked by the HyperVM panel.

After an 1hr b3 increases from 60mb to 80mb and póxniej it depends how it is used on the server after 22h can take 240MB RAM-40mbsys same B3 = 200

long as it takes bot? so after 22h using

and how best the system by testing
I have to choose
CentOS 5
debian 4.0
debian 5.0
Fedora 8

Ubuntu 8.10

I used Ubuntu 8.10 and 9.10 both install easy for B3
Logged
Tags: memory bfbc2 
Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal