Thursday, March 4, 2010

QlikView : memory limits

My client has several large machines ( 128+ Gb memory, 16+ processor cores) for developer use. There can be tens of instances of qv.exe developer tool running fine at the same time.

That is, until somebody makes a loop in the script, and loads several millions rows, and consumes all available virtual memory. In that case programs (and Windows services) will randomly fail with variations of "out of memory" and "not enough resources". In rare cases memory shortage is so bad that Windows will corrupt disk and registry .

Here is a very good remedy, inspired from Unix "ulimit": kill all processes consuming more than X amount of memory. Of course it is hard to say a correct limit. With current amounts of data, well behaved documents use up 30 Gb memory, and bad scripts consume in excess of 100 Gb memory and crash. There must be a sanity limit somewhere in between.

powershell -command "& {get-process qv | Where-Object {$_.PeakVirtualMemorySize64 -gt 50000000000 } | Stop-Process } "

Powershell is not particularly fast, but other command line tools (ex from Sysinternals) do not display correctly memory usage for 64 bit processes.

Script above is scheduled every 10 minutes, and has improved a lot the availability of the servers. Of course, here and there some developer starts yelling, but so far there was always something wrong with those QVW files. My favourite so far: Export 50 million rows (with calculated columns) to Excel ..

-Alex

Tuesday, November 11, 2008

link to revj from Canada

Dr. Dwight Deugo from School of Computer Science, Carleton, Canada kindly mentions Reverse Snowflake Joins in his COMP5900 course on Open Source Software (Fall 2008). Link is here

Friday, September 26, 2008

Friday, September 12, 2008

Digg

Posted a link on Digg, hope that somebody will care to vote it up

Wednesday, September 10, 2008

online demo

Finally managed to put an online demo of Reverse Snowflake Joins .

Saturday, September 6, 2008

Link from Graphviz

Reverse Snowflake Joins was linked from Graphviz site

Wednesday, August 27, 2008

Link from MonetDB

MonetDB site posted a link to Reverse Snowflake Joins, their link is http://monetdb.cwi.nl/