Thursday, 2010-01-21

../irclogs/#mantishelp.2010-01-21.log
--- scribe started ---00:00
CIA-22Mantisbt: vboctor master-1.2.x * rdfbe8b563b8b /core/ (cfdefs/cfdef_standard.php gpc_api.php): Fixes #10670: Custom fields required do not work.04:06
CIA-22Mantisbt: vboctor * re45c8298deed /core/ (cfdefs/cfdef_standard.php gpc_api.php): Fixes #10670: Custom fields required do not work.04:07
rombertHey guys09:51
rombertTrying to debug an upgrade from 1.1.0 to 1.2.0rc09:51
rombertschema update fails at Schema UpdateFunction ( date_migrate )09:52
rombertfails as in " The (GOOD) box is not printed, but no errors are shown"09:52
rombertnothing in the apache error log09:52
rombertI've set max_execution_time to 300, just in case09:52
dhx_mhmm is date_migrate getting called ok?10:07
dhx_mI moved it to install_helper_functions_api.php a while ago10:08
rombertjust giving it 128M of memory worked10:12
rombert150k issues ...10:12
rombertthanks anyway10:12
dhx_mit seems we need to implement date_migrate as a function that loads up pages in-between10:13
dhx_mie. do 10k issues per page load10:13
rombertthat would certainly help10:13
rombertRight now it loads all of them, right?10:13
rombertI think better error reporting would help as well10:14
rombertI was shooting in the dark, trying to guess why it failed10:14
dhx_myeah I imagine the problem is every time the function is called (once per row) we're creating local variables/arrays/whatever10:14
rombertI see10:14
dhx_mand the garbage collector isn't executing in between10:14
dhx_mso those 150k+ variables are lingering around inefficiently (it's PHP)10:14
rombertright10:15
dhx_mare you able to modify the code to call gc_collect_cycles() every 10k cycles?10:15
dhx_mand see if that solves memory problems?10:16
dhx_moh10:16
dhx_mit's PHP 5.3.0+ only10:16
rombertI'm running 5.1.6 here10:16
rombertso I'm afraid not10:16
dhx_myep don't worry about it, because most people aren't using 5.3 (it was very buggy on release)10:16
rombertok10:17
dhx_mhmm what I said doesn't make sense though10:18
dhx_mI'd be VERY surprised if variables aren't freed after return from a function10:18
dhx_mas their scope has ended10:18
dhx_msome info here: http://www.php.net/manual/en/features.gc.refcounting-basics.php10:19
rombertIs there any memory profiler available for PHP ? Or the possibility of triggering a memory dump / histogram?10:23
dhx_mmaybe you can do a similar method as used here:10:24
dhx_mhttp://www.php.net/manual/en/features.gc.performance-considerations.php10:24
dhx_mmemory_get_usage();10:24
rombertOK, I skimmed that. Perhaps I'll get around to it when I do the real migration. This was just a test.10:25
dhx_m150k is a large migration :)10:26
dhx_mI've always wondered what the largest/most active Mantis installation is10:27
dhx_mas I can't see Mantis coping well with more than about 20 concurrent users, at most10:27
rombertWell, this is one installation10:27
rombertI don't know about the concurrent users10:27
dhx_m(for an old dual core system that is)10:27
rombertNever heard anyone complain about responsiveness10:27
gialludhx_m, are you sure it's PHP's fault?10:33
gialluthat is, are we sure we're not caching stuff on purpose?10:34
dhx_mgiallu: it's quite probably that our code is bad too :)10:34
dhx_m*probably10:34
* giallu has been hit by cache issues quite often10:34
dhx_mgrr, *probable10:34
dhx_m3 tries10:34
dhx_mproject hierarchy caching is probably a big one10:35
giallufor most things, I don't really see why we are caching stuff. For instance, 32Mb is not enough to load our user list in adm_config_report.php10:37
gialluuser list is used exactly _once_ that is, for building the list...10:38
gialluanother example, my export plugin easily hits memory limit because bug data is cached when read, again I need to read it, dump it to XML and never use it again10:39
* giallu thinks he will start a "killcache" git branch10:40
rombertI'm not sure about the performance gain of these caches10:41
rombertperhaps we should have a hit count?10:41
rombertThen we can decide if a certain cache is worth it or not10:41
rombertIMO we should cache 'reference data', like category names10:42
rombertIf we cache bugs it sounds a little bit like we're not properly remembering what we've retrieved from the database10:43
rombertbut then again, I don't know much about the internals10:43
dhx_mback11:03
dhx_mthe purpose of cache is to prevent continuous queries to the SQL server11:03
dhx_motherwise every time you need to know about a user account, you have to hit the database11:03
dhx_mat least that is the reason I *suspect* we use cache ;)11:03
gialludhx_m, I think I understand the "cache" concept. however, we should use cache where needed, i.e. only in pages where we measure a negative impact from not doing it11:15
gialluthe current approach is more like: let's just cache everything I read from the DB, just in case11:16
dhx_myep I agree, the caching needs to be much smarter11:16
dhx_mand only done where absolutely needed (ie. not for single use transactions)11:16
dhx_mfor instance, you may want to print a list of project hierarchies, but that doesn't indicate a need to cache that information11:17
dhx_myou may only print it once and be done with it11:17
TrahDivadHi people. I'm trying to find a way for my application to programmatically post an issue on my Mantis server when an unhandled exception occurs.11:23
TrahDivadI seems like I need to use Mantis Connect, but it seems a bit complicated to use in Cocoa (didnt find any example). I was wondering if there was a simplier way, similar to BugzScout http://www.fogcreek.com/FogBugz/docs/60/topics/customers/BugzScout.html11:24
TrahDivadI'm trying to find a solution that is as lightweight as possible11:28
rombertTrahDivad: have you tried just using the SOAP API to create a new issue?11:30
rombertthe WSDL is at  server/mantis/api/soap/mantisconnect.php?WSDL11:31
TrahDivadI don't know anything about SOAP, but it seems that it's a bit heavy. And Cocoa dosn't have good support for SOAP11:37
TrahDivadAs it's happening in the Exception Handler of the application, it needs to be fast and simple.11:38
TrahDivadI'll try looking into SOAP if ther's no other possibility, but I xanted to make sure beforehand.11:39
rombertThere's no alternative that I know of11:48
alemayoHi!12:44
alemayowe are just about to create our third plugin :-)12:45
TrahDivadI'm trying to use the SOAP web service and I keep getting Access Denied. Any idea if the user I'm trying to post with must have special priviliges?13:26
alemayohttp://git.mantisforge.org/w/Terminology.git13:35
alemayothere is something wrong with the update-columes function in 1.2.x13:58
alemayowe want to set columes for a project. we selected that projects, but the button "update columes for project XXX" is hidden13:58
alemayoI think the if block around line 144 in mange_columns_inc (if ( $t_account_page  ) {  ) must just be removed -- does not seem to make sense in there ?!13:59
bolshiI've got some problems configuring EmailReporting via IMAP15:04
bolshiDoes someone know an configuration sheet?15:06
bolshicrontab delivered the following: <p style="color:red">SYSTEM WARNING: require_once(/Applications/MAMP/htdocs/mantisbtrczwo/core/mail_api.php): failed to open stream: No such file or directory</p>15:54
bolshiwe added imap support15:55
bolshiinstead of mail_api.php the file is named mail_api_imap.php15:56
nuclear_eclipsebolshi: we can't support 3rd party modifications to mantis here, sorry15:56
bolshisorry15:56
bolshii didnt know that15:56
nuclear_eclipseno worries15:57
aa3132hello. i'm trying to find the correspondence between the bug resolution field in the table, which is an id and the string for it. can anybody help?16:16
pauldhx_m: tbh, caching depends on what you deem important22:07
pauli.e. our AD at work is liek 1GB in size, yet you've gotta buy a server with 8gb of ram or something as that's the lowest amount available type of thing22:08
paulon that basis, ram = cheap, a remote call to a sql server over a network would therefore be slow+expensive22:08
paulso at the moment it serves two purposes22:08
paula) the stuff we cache we tend to use >1 on a page anyway22:09
CIA-22Mantisbt: s.mazeland * rb2c3d1db4ac4 / (46 files in 4 dirs): Localisation updates from http://translatewiki.net (2010-01-21)22:25

Generated by irclog2html.py