Programmatically profile memory usage on multiple VIs

I need to programmatically profile the memory usage (daily) on a set of designated VIs and record the results for future comparison.  How can I configure the profiler to start, then run a sub VI, and then stop the profiler?  Also, how can I save the results into a spreadsheet?

Thanks for the reply Stephanie.  What I need to do, however, is programmatically set up the Memory Profiler (Tools>>Profile>>Performance and Memory and then select the "Profile memory usage" checkbox and then select the "Memory usage" checkbox), start it, programmatically run my selection of sub VIs, and then stop the profiler, and then save the data to a specific location.  All of this has to happen without input from a user.  It will run automatically at pre-determined intervals.
Understanding how to programmatically set up and run the profiler is where I need help.  I couldn't find any functions that dealt with the memory profiler.

Similar Messages

  • JMX programmatically control  memory usage

    Hi,
    I would like a server to programmatically receive updates concerning the memory usage of its clients. JMX seems to be able to do this. I have not found an example on how to do this programmatically.
    Is there an easier way to do this other than using JMX? If not where can i start and learn how to do this? I have very little time and there is a sea of JMX tutorials,articles and code sample -unfortunately not relevant to what i need to do.
    Can somebody at least guide me to some resources specific to my purpose?
    Thanks

    String jmxUrl = String.format("service:jmx:rmi:///jndi/rmi://%s:%s/jmxrmi", server, port);
    MBeanServerConnection con = JMXConnectorFactory.connect(new JMXServiceURL(jmxUrl), null).getMBeanServerConnection();
    List<MemoryPoolMXBean> pools = new ArrayList<MemoryPoolMXBean>();
    Set<ObjectInstance> beans = null;
    try {
         beans = con.queryMBeans(new ObjectName("java.lang:type=MemoryPool,name=*"), null);
    } catch (MalformedObjectNameException e) {
         e.printStackTrace();
    for (ObjectInstance bean : beans) {
         pools.add(ManagementFactory.newPlatformMXBeanProxy(con, bean.getObjectName().toString(), MemoryPoolMXBean.class));
    }Message was edited by:
    octoberdaniel
    Message was edited by:
    octoberdaniel

  • Mbean for Memory Usage

    Hello!
    I need to monitor programmatically the memory usage of the Tomcat server. Can I implement it via MBeans and if yes, which MBean should I use? Thanks.

    Hi,
    I do not think this is possible. What you can monitor with the java.lang MXBeans is the
    JVM memory as seen by the garbage collector.
    You can use tools like VisualVM to try to figure out where objects have been allocated,
    if this is what you need.
    http://visualvm.dev.java.net/
    hope this helps,
    -- daniel
    http://blogs.sun.com/jmxetc

  • Memory usage/freeze/crash modifying multiple objects

    I'm getting Labview hanging issues when I try to modify front panel objects while editing (not running).  It seems to be a general problem but this is the current scenario.  Many charts on my front panel (over thirty), so I multiple select, and RClick>Properties.  Watching Labview in Task Manager, I watch the Memory usage climb from about 90MB to 600MB.  And it takes a minute at least!  I can then change properties (plot scale ranges), and after more pausing, the dialog closes.  Soon after, I'll get a fatal error and LV crashes.  Something wrong here; I thought maybe it's my computer, but how can it take 0.5GB to load 30 chart property sets?  Core i5, LV2011, Win7.

    johnsold wrote:
    Do you have the chart history lengths set to large values (many MB)?  Do you have significant amounts of data saved as default in the charts?
    Try clearing the charts, one at a time if necessary, first.
    Charts have internal buffers. So LV may be trying to make backup copies so that you can undo if you change your mind.  Charts are generally not a good way to manage large amounts of data.  I use as a rule of thumb: Do not keeping more data in a chart than the number of pixels in its width.
    Lynn
    I aggree that crashing could be due to the amount of data in the charts. Try clearing them and saving the cleared chart as the default before doing the multiple object selection.
    I guess I live a more dangerous life-style that Lynn in that I'll allow more data points than pixels simply because LV is "SO DAMN GOOD" at rendering down the data and supporting zooming. "In the old days" it was a common technique to reduce the data sets presented to charts to avaoid killing the CPU. So Lynn's "rule of thumb" is consistent with history. modern CPU can handle the abuse much better now so I can get away with living close to the edge.
    Sharing thoughts,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Extremely high memory usage after upgrading to Firefox 12

    After I upgraded to Firefox 12, I began frequently experiencing Firefox memory usage ballooning extremely high (2-3GB after a few minutes of light browsing). Sometimes it will drop back down to a more reasonable level (a few hundred MB), sometimes it hangs (presumably while trying to garbage collect everything), and sometimes it crashes. Usually the crashing thread cannot be determined, but when it can be, it is in the garbage collection code ( [https://crash-stats.mozilla.com/report/list?signature=js%3A%3Agc%3A%3AMarkChildren%28JSTracer*%2C+js%3A%3Atypes%3A%3ATypeObject*%29] ).
    I was able to capture an about:memory report when Firefox had gotten to about 1.5 GB and have attached an image.
    A couple of things I've tried. I have lots of tabs open (though the Don't load tabs until selected option is enabled), so I copied my profile, kept all my extensions enabled, but closed all my tabs. I then left a page open to http://news.google.com/ and it ran fine for several days, whereas my original profile crashes multiple times a day.
    I also tried disabling most of my extensions, leaving the following extensions that I refuse to browse without:
    Adblock Plus
    BetterPrivacy
    NoScript
    PasswordMaker
    Perspectives
    Priv3
    However, the problem still happened in that case.
    Don't know if any of this helps or not. I'm looking forward to trying Firefox 13 when it comes out.

    hello, thanks for reporting back with detailed information.
    from a brief look at your extensions i don't recognize any known (to me at least) memory leaking ones. in the last weeks there were also reports about the java plugin causing high memory consumption in combination with firefox 12 - in case you have it installed in firefox > addons > plugins try disabling it for a few days & test how firefox is behaving with many tabs.
    & although probably not related to the memory problems you could update your graphics driver to get better results with hardware acceleration in firefox - this is the latest driver by intel for your model & os:
    [http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=21135&lang=eng&OSVersion=Windows%207%20%2864-bit%29*&DownloadType=Drivers]

  • High memory usage when many tabs are open (and closed)

    When I open Firefox the memory usage is about 70-100 MB RAM. When I'm working with Firefox I often open 15-20 tabs at once, then I close them and open others. Memory usage increaes up to 450 - 500 MB RAM. After closing the tabs the usage usually decreases, but after sometime. It starts decreasing very slow and never comes back to the level from the beginning. After few hours of work Firefox uses about 400 MB RAM even if one tab is open. First I thought it's because of my plugins (Firebug, Speed Dial, Adlock Plus) but I've checked it and it's not. I reinstalled Firefox but the problem occurs as well. I'm not sure if it's normal. Could you help me, please?

    Hi,
    Not an exact answer but please [http://kb.mozillazine.org/Reducing_memory_usage_(Firefox) see this.] The KB article ponders through various general situations which may or may not be applicable to specific instances but nevertheless could be helpful.
    Useful links:
    [https://support.mozilla.com/en-US/kb/Options%20window All about Tools > Options]
    [http://kb.mozillazine.org/About:config Going beyond Tools > Options - about:config]
    [http://kb.mozillazine.org/About:config_entries about:config Entries]
    [https://addons.mozilla.org/en-US/firefox/addon/whats-that-preference/ What's That Preference? add-on] - Quickly decode about:config entries - After installation, go inside about:config, right-click any preference, enable (tick) MozillaZine Results to Panel and again right-click a pref and choose MozillaZine Reference to begin with.
    [https://support.mozilla.com/en-US/kb/Keyboard%20shortcuts Keyboard Shortcuts]
    [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder & Files]
    [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]
    [http://kb.mozillazine.org/Problematic_extensions Problematic Extensions/Add-ons]
    [https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes Troubleshooting Extensions and Themes]

  • Memory usage of excel stays high after Macro is executed and excel crashes after trying to close it

    Hi,
    I'm trying to resolve an issue with an excel based tool. The macros retrieve data from an Oracle database and do calculations with the data. They also open and write into files in the same directory. The macros all run and finish the calculations. I can
    continue to use and modify the sheet. I can also close the workbook, however excel memory usage I see in the windows Task manager stays elevated.If I  close Excel it says: Excel stopped working and then it tries to recover information...
    I assume something in the macro did not finish properly and memory was not released. I would like to check what is still open (connection, stream or any other object) when I close the workbook I would like to have a list of all still used memory. Is there
    a possibility to do so.
    Here the code I'm using, its reduced to functions which open something. Functions   
    get_v_tools() and get_change_tools() are same as get_client_positions().
    Public conODBC As New ADODB.Connection
    Public myPath As String
    Sub get_positions()
    Dim Src As range, dst As range
    Dim lastRow As Integer
    Dim myPath As String
    lastRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row
    Sheets("SQL_DATA").range("A2:AD" & lastRow + 1).ClearContents
    Sheets("SQL_DATA").range("AG2:BE" & lastRow + 2).ClearContents
    Sheets("SQL_DATA").range("AE3:AF" & lastRow + 2).ClearContents
    k = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
    Sheets("ToolsList").range("A2:M" & k).ClearContents
    'open connection
    Call open_connection
    lastRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row
    If lastRow < 2 Then GoTo ErrorHandling
    'copy bs price check multiplications
    Set Src = Sheets("SQL_DATA").range("AE2:AF2")
    Set dst = Worksheets("SQL_DATA").range("AE2").Resize(lastRow - 1, Src.columns.Count)
    dst.Formula = Src.Formula
    On Error GoTo ErrorHandling
    'new prices are calculated
    newPrice_calculate (lastRow)
    Calculate
    myPath = ThisWorkbook.Path
    'Refresh pivot table in Position Manager
    Sheets("Position Manager").PivotTables("PivotTable3").ChangePivotCache ActiveWorkbook. _
    PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
    myPath & "\[Position_Manager_v1.0.xlsm]SQL_DATA!R1C2:R" & lastRow & "C31" _
    , Version:=xlPivotTableVersion14)
    ErrorHandling:
    Set Src = Nothing
    Set dst = Nothing
    If conODBC.State <> 0 Then
    conODBC.Close
    End If
    End Sub
    Sub open_connection()
    Dim sql_data, sql_data_change, sql_data_v As Variant
    Dim wdth, TotalColumns, startRow As Integer
    Dim rst As New ADODB.Recordset
    Errorcode = 0
    On Error GoTo ErrorHandling
    Errorcode = 1
    With conODBC
    .Provider = "OraOLEDB.Oracle.1"
    .ConnectionString = "Password=" & pswrd & "; Persist Security Info=True;User ID= " & UserName & "; Data Source=" & DataSource
    .CursorLocation = adUseClient
    .Open
    .CommandTimeout = 300
    End With
    startRow = Sheets("SQL_DATA").Cells(Sheets("SQL_DATA").rows.Count, "A").End(xlUp).Row + 1
    sql_data = get_client_positions(conODBC, rst)
    wdth = UBound(sql_data, 1)
    Sheets("SQL_DATA").range("A" & startRow & ":AA" & wdth + startRow - 1).Value = sql_data
    'Run change tools instruments
    startRow = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
    sql_data_change = get_change_tools(conODBC, rst)
    wdth = UBound(sql_data_change, 1)
    Sheets("ToolsList").range("A" & startRow & ":M" & wdth + startRow - 1).Value _
    = sql_data_change
    'open SQL for V tools instruments
    startRow = Sheets("ToolsList").Cells(Sheets("ToolsList").rows.Count, "A").End(xlUp).Row + 1
    sql_data_v = get_v_tools(conODBC, rst)
    wdth = UBound(sql_data_v, 1)
    Sheets("ToolsList").range("A" & startRow & ":L" & startRow + wdth - 1).Value = sql_data_v
    conODBC.Close
    ErrorHandling:
    If rst.State <> 0 Then
    rst.Close
    End If
    Set rst = Nothing
    End Sub
    Private Function get_client_positions(conODBC As ADODB.Connection, rst_posi As ADODB.Recordset) As Variant
    Dim sql_data As Variant
    Dim objCommand As ADODB.Command
    Dim sql As String
    Dim records, TotalColumns As Integer
    On Error GoTo ErrorHandling
    Set objCommand = New ADODB.Command
    sql = read_sql()
    With objCommand
    .ActiveConnection = conODBC 'connection for the commands
    .CommandType = adCmdText
    .CommandText = sql 'Sql statement from the function
    .Prepared = True
    .CommandTimeout = 600
    End With
    Set rst_posi = objCommand.Execute
    TotalColumns = rst_posi.Fields.Count
    records = rst_posi.RecordCount
    ReDim sql_data(1 To records, 1 To TotalColumns)
    If TotalColumns = 0 Or records = 0 Then GoTo ErrorHandling
    If TotalColumns <> 27 Then GoTo ErrorHandling
    If rst_posi.EOF Then GoTo ErrorHandling
    l = 1
    Do While Not rst_posi.EOF
    For i = 0 To TotalColumns - 1
    sql_data(l, i + 1) = rst_posi.Fields(i)
    Next i
    l = l + 1
    rst_posi.MoveNext
    Loop
    ErrorHandling:
    rst_posi.Close
    Set rst_posi = Nothing
    Set objCommand = Nothing
    get_client_positions = sql_data
    End Function
    Private Function read_sql() As String
    Dim sqlFile As String, sqlQuery, Line As String
    Dim query_dt As String, client As String, account As String
    Dim GRP_ID, GRP_SPLIT_ID As String
    Dim fso, stream As Object
    Set fso = CreateObject("Scripting.FileSystemObject")
    client = Worksheets("Cover").range("C9").Value
    query_dt = Sheets("Cover").range("C7").Value
    GRP_ID = Sheets("Cover").range("C3").Value
    GRP_SPLIT_ID = Sheets("Cover").range("C5").Value
    account = Sheets("Cover").range("C11").Value
    sqlFile = Sheets("Cover").range("C15").Value
    Open sqlFile For Input As #1
    Do Until EOF(1)
    Line Input #1, Line
    sqlQuery = sqlQuery & vbCrLf & Line
    Loop
    Close
    ' Replace placeholders in the SQL
    sqlQuery = Replace(sqlQuery, "myClent", client)
    sqlQuery = Replace(sqlQuery, "01/01/9999", query_dt)
    sqlQuery = Replace(sqlQuery, "54747743", GRP_ID)
    If GRP_SPLIT_ID <> "" Then
    sqlQuery = Replace(sqlQuery, "7754843", GRP_SPLIT_ID)
    Else
    sqlQuery = Replace(sqlQuery, "AND POS.GRP_SPLIT_ID = 7754843", "")
    End If
    If account = "ZZ" Then
    sqlQuery = Replace(sqlQuery, "AND AC.ACCNT_NAME = 'ZZ'", "")
    Else
    sqlQuery = Replace(sqlQuery, "ZZ", account)
    End If
    ' Create a TextStream to check SQL Query
    sql = sqlQuery
    myPath = ThisWorkbook.Path
    Set stream = fso.CreateTextFile(myPath & "\SQL\LastQuery.txt", True)
    stream.Write sql
    stream.Close
    Set fso = Nothing
    Set stream = Nothing
    read_sql = sqlQuery
    End Function

    Thanks Starain,
    that's what I did the last days and found that the problem is in the
    newPrice_calculate (lastRow)
    function. This function retrieves data (sets it as arrays) which was correctly pasted into the sheet, loops through all rows and does math/calendar calculations with cell values using an Add-In("Quantlib")
    Public errorMessage as String
    Sub newPrice_calculate(lastRow)
    Dim Type() As Variant
    Dim Id() As Variant
    Dim Price() As Variant
    Dim daysTo() As Variant
    Dim fx() As Variant
    Dim interest() As Variant
    Dim ObjCalend as Variant
    Dim newPrice as Variant
    On Error GoTo Catch
    interest = Sheets("SQL_DATA").range("V2:V" & lastRow).Value
    Type = Sheets("SQL_DATA").range("L2:L" & lastRow).Value Id = Sheets("SQL_DATA").range("M2:M" & lastRow).Value Price = Sheets("SQL_DATA").range("T2:T" & lastRow).Value
    daysTo = Sheets("SQL_DATA").range("K2:K" & lastRow).Value
    fx = Sheets("SQL_DATA").range("U2:U" & lastRow).Value
    qlError = 1
    For i = 2 To lastRow
    If (i, 1) = "LG" Then
    'set something - nothing spectacular like
    interest(i, 1) = 0
    daysTo(i , 1) = 0
    Else
    adjTime = Sqr(daysTo(i, 1) / 365)
    ObjCalend(i,1) =Application.Run("qlCalendarHolidaysList", _
    "CalObj", ... , .... other input parameters)
    If IsError(ObjCalend(i,1)) Then GoTo Catch
    'other calendar calcs
    newPrice(i,1) = Application.Run( 'quantLib calcs)
    End If
    Catch:
    Select Case qlError
    Case 1
    errorMessage = errorMessage & " QuantLibXL Cal Error at: " & i & " " & vbNewLine & Err.Description
    ObjCalend(i,1) (i, 1) = "N/A"
    End Select
    Next i
    Sheets("SQL_DATA").range("AB2:AB" & lastRow).Value = newPrice
    'Sheets("SQL_DATA").range("AA2:AA" & lastRow).Value = daysTo
    ' erase and set to nothing all arrays and objects
    Erase Type
    Erase id
    Erase Price
    Set newPrice = Nothing
    Is there a possibility to clean everything in:
    Private Sub Workbook_BeforeClose(Cancel As Boolean)
    End Sub
    Thanks in advance
    Mark

  • Norton reports high memory usage with firefox and it crashes often

    Norton antivirus 2011 has pop up warnings reporting high memory usage from Firefox. I have been getting theem often and my computer is crashing often after those pop up warnings. Thanks

    Safe mode did not help.
    I have disabled ALL extensions and plug-ins, but the problem with "zig-zag" memory usage still remains (I've not tried to leave browser open for the night yet).
    I think I'll do clean reinstall with completely new empty profile (without sync'ed information) to try this out. If this works, I'll start adding stuff (configuration, sync, features, etc) to see what causes the problem.

  • Very high memory usage with Yahoo Mail

    After using Yahoo Mail for an hour or so my memory usage increases to a very high level.
    Just now, after reading and deleting about 50 e-mails (newsletters etc.) I noticed Firefox 17 running slowly and checked the memory usage in Windows Task Manager (I am using XP) and it was 1.2 Gb. My older laptop only has 2 Gb of RAM. Yahoo Mail was the only thing open at the time.
    I never notice this problem with Gmail which I mainly use. However I use Yahoo Mail for quite a few newsletters etc. that are less important and which I only check once a week or so.
    I found the following bug report about 3 years old which almost exactly describes my problem.
    https://bugzilla.mozilla.org/show_bug.cgi?id=506771
    But this report involves a much earlier Firefox version, and at the end it seems to say that the problem was fixed. However it well describes my current issue with Firefox 17, especially the continual increase in memory while using the up/down arrow keys to scroll through Yahoo e-mails.
    Is this normal to have to shut down and reopen Firefox every hour or so to clean out the memory? For some reason I only notice this when using Yahoo Mail. After using many other sites and having multiple tabs open for several hours I rarely reach that kind of memory usage. About the highest I've seen with other sites after a couple of hours is 600 Kb which is roughly when I start notice slower response times.

    See also:
    *https://support.mozilla.org/kb/firefox-uses-too-much-memory-ram
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • The firefox doesnt open because it has high memory usage

    I use firefox normally but have started seeing issues with the firefox version 3.6.13 and when i reopen the firefox it says " Firefox is already running " when i check the memory usage it is using most of the CPU usage and memory ~ 800 K or even more . I have to kill the firefox using the Taskmanager each time and then open firefox

    Safe mode did not help.
    I have disabled ALL extensions and plug-ins, but the problem with "zig-zag" memory usage still remains (I've not tried to leave browser open for the night yet).
    I think I'll do clean reinstall with completely new empty profile (without sync'ed information) to try this out. If this works, I'll start adding stuff (configuration, sync, features, etc) to see what causes the problem.

  • High disk usage/high memory usage.

    i keep getting high memory usage and high disk usage in ps cs6.
    its slow when i open a file. how can i solve this problem.
    thank you.
    philip.

    Not to put too fine a point on it, but more than what?  More RAM is almost always better, but you haven't answered most of the questions posed here.  The answer might be different if you have 2 GB of RAM or 32 GB of RAM already.  A 9 megapixel document could get rather large with a lot of layers, but again you've neglected to give any hard info about its size.
    Regarding your video card, that's a bit of a judgment call you need to make.  For Photoshop CS6 I currently advise people to try to get a video card that gets a score of 1000 or better on this benchmark:  http://www.videocardbenchmark.net/high_end_gpus.html
    Video card speed will matter when you're editing those 3D components and video card VRAM will also matter, but possibly even more importantly your GeForce 320 is a bit old, and nVidia may just not be doing their best driver work for it any more. 
    Everything in general will run more smoothly with a powerful modern video card.  I like to recommend a VisionTek ATI Radeon HD 7750 - or if the computer power supply and your budget allow, the even more powerful 7850.  VisionTek does a very good job with their hardware, IMO, and it comes with a lifetime guarantee. 
    Keep in mind that if you switch from nVidia to ATI or vice versa, you should carefully sweep your system to ensure all files from the old card are removed, then visit the web site of the new card's maker and download/install their latest display driver release.
    Best of luck.
    -Noel

  • Memory leaks- high memory usage svchost.exe

    hello!
    im having a kind of a similar problem. Im using a Q6600 with 4Gb of RAM running on Windows 7 x64. My physical memory usage history is 1.75GB idle but my CPU usage looks good ~ 0%.
    In Windows Task Manager when i arranged the memory column, the process with the highest memory usge is svchost.exe with 116,572K. And i have 14 svchost.exe in my computer! I opened process exporer and check the legitimate of all those svchost.exe
    and they are all legit. When i look at the properties of the highest svchost.exe in process explorer, the services which is running under it is as follows
    AudioEndPointBuilder c:\Windows\System32\Audiosrv.dll
    CscService c:\Windows\System32\cscsvc.dll
    hidserv c:\Windows\System32\hidserv.dll
    Netman c:\Windows\System32\netman.dll
    PcaSvc c:\Windows\System32\pcasvc.dll
    SysMain c:\Windows\System32\sysmail.dll
    TrkWks c:\Windows\System32\trkwks.dll
    UxSms c:\Windows\System32\uxsms.dll
    wudfsvc c:\Windows\System32\WUDFSvc.dll
    All are legit DLLS.
    Is it normal to have 14 svchost.exe running at the same time(system, local service, network service in Task Manager)
    and how can i reduce the memory usage of the svchost.exe?

    Hi,
    There can be multiple instances of Svchost.exe running at the same time. Each Svchost.exe session can contain a grouping of services, so that separate services can
    be run depending on how and where Svchost.exe is started.
    If you would like to reduce the usage of this service, I could share the following article with you:
    Getting Started with SVCHOST.EXE Troubleshooting
    PRF: High CPU (SVCHOST.EXE)
    Hope it helps.
    Alex Zhao
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • High RAM memory usage compared to other systems

    I'm suffering with memory usage problems, only in open 2 tabs of facebook(it's only for example, any 'heavy' page freeze also) in firefox*(for example also, but this occur in chromium also) freeze computer.
    I've 1GB of memory, it isn't big but also isn't very little.
    I'm using XFCE with compiz (yes, compiz, since use a very lightweight openbox-based session doesn't help, then compiz...) when system start (after login) system is consuming 130MB approximately of RAM.
    after 1 hour if close all open apps and see memory usage again consume is something about 350MB, "only solution" is reboot.
    all applications(htop,free -m,xfce's system monitor...) that I've tried to monitor memory usage show above scenario, except the 'ps_mem' script in AUR.
    in the 'ps_mem' script the result is following (with opera browser open, less memory offensive browser but I really prefer firefox):
    Private + Shared = RAM used Program
    88.0 KiB + 10.0 KiB = 98.0 KiB agetty
    380.0 KiB + 34.5 KiB = 414.5 KiB sshd
    408.0 KiB + 93.0 KiB = 501.0 KiB gpg-agent (2)
    372.0 KiB + 142.0 KiB = 514.0 KiB avahi-daemon (2)
    456.0 KiB + 60.0 KiB = 516.0 KiB systemd-logind
    280.0 KiB + 261.0 KiB = 541.0 KiB sh
    476.0 KiB + 103.5 KiB = 579.5 KiB xfconfd
    476.0 KiB + 153.5 KiB = 629.5 KiB gvfsd
    604.0 KiB + 34.5 KiB = 638.5 KiB systemd-udevd
    588.0 KiB + 102.5 KiB = 690.5 KiB dbus-launch (3)
    576.0 KiB + 119.5 KiB = 695.5 KiB sudo
    668.0 KiB + 77.5 KiB = 745.5 KiB cups-browsed
    620.0 KiB + 179.5 KiB = 799.5 KiB at-spi2-registryd
    804.0 KiB + 67.0 KiB = 871.0 KiB htop
    756.0 KiB + 131.0 KiB = 887.0 KiB gconfd-2
    800.0 KiB + 126.0 KiB = 926.0 KiB upowerd
    752.0 KiB + 183.5 KiB = 935.5 KiB xscreensaver
    920.0 KiB + 85.0 KiB = 1.0 MiB cupsd
    876.0 KiB + 241.0 KiB = 1.1 MiB gvfsd-fuse
    692.0 KiB + 429.0 KiB = 1.1 MiB systemd-journald
    880.0 KiB + 273.5 KiB = 1.1 MiB at-spi-bus-launcher
    1.2 MiB + 125.0 KiB = 1.3 MiB udisksd
    1.4 MiB + 486.5 KiB = 1.9 MiB dbus-daemon (5)
    1.4 MiB + 533.5 KiB = 1.9 MiB panel-6-systray
    1.5 MiB + 430.0 KiB = 2.0 MiB lightdm (2)
    1.6 MiB + 572.0 KiB = 2.1 MiB xfce4-session
    1.5 MiB + 683.0 KiB = 2.2 MiB panel-5-datetim
    1.5 MiB + 706.5 KiB = 2.2 MiB panel-2-actions
    1.6 MiB + 723.0 KiB = 2.3 MiB panel-4-systeml
    2.0 MiB + 543.5 KiB = 2.5 MiB xfsettingsd
    2.0 MiB + 579.5 KiB = 2.6 MiB systemd (3)
    2.3 MiB + 815.0 KiB = 3.1 MiB emerald
    2.8 MiB + 578.5 KiB = 3.3 MiB gnome-keyring-daemon (3)
    3.2 MiB + 946.5 KiB = 4.1 MiB zsh (2)
    16.1 MiB + -12144.0 KiB = 4.2 MiB polkitd
    4.1 MiB + 465.0 KiB = 4.6 MiB notify-osd
    4.5 MiB + 1.6 MiB = 6.2 MiB xfce4-panel
    5.1 MiB + 1.2 MiB = 6.3 MiB panel-7-mixer
    7.7 MiB + 1.4 MiB = 9.0 MiB xterm (2)
    12.0 MiB + 636.0 KiB = 12.6 MiB opera:libflashp
    24.3 MiB + -10774.5 KiB = 13.8 MiB Xorg
    18.6 MiB + 1.1 MiB = 19.7 MiB gnome-do (2)
    23.2 MiB + 2.4 MiB = 25.6 MiB compiz
    168.4 MiB + 3.2 MiB = 171.7 MiB opera
    320.1 MiB
    =================================
    as you can see in 'ps_mem' memory usage isn't nothing absurdly it's ok.
    another example, this problem stop me make certain things, for example is impossible browsing in web while programming in eclipse, this is very uncomfortable.
    other thing, this not occur in Windows XP, I can open more than 10 tabs in firefox, and eclipse open, etc...
    any needing information, tell-me!
    firefox*: with memory cache turned off in about:config
    Last edited by hotvic (2013-08-12 17:42:21)

    hotvic, could you please change the title to something more descriptive? 'memory problems' sounds like you have problems e.g. remembering / recalling things, which is not an Arch issue ;P
    kenny3794 wrote:
    I've had some limiting performance with browsers lately (Firefox and Chromium).  I found it had a considerable cache size utilizing lots of fragmented space on my home directory. I cleared the cache and have since set a limit to the cache size of 30 MB for Firefox.  Between multiple users across multiple browser sessions, I had at least 2 GB of cache data on my 10 GB home partition!  So far (1 day), this has been helpful.  Perhaps this could help you also?
    Ken
    OP is talking about RAM, not HDD space.

  • How can I fix a drastic and sudden increase in memory usage?

    Before I start, I've already been having slight issues since the middle of last year, but I thought nothing of it. Firefox starting up using a good chunk of memory was normal, and I could run it alongside my other programs just fine. However, about 3 or 4 days ago, Firefox has started to spike in memory usage, to the point where it slows my entire computer down, will not load pages, and it's generally a mess. I always have to force close it, too, because whenever I close it conventionally, it's still open in the background. I've been having the background issue for a few months, but it's never been a large problem until the last few days. I had thought, at first, that it was the result of some programs that got installed as part of another installer. I had no issue with the installer, considering it came from a trusted forum for game design on an official topic, from a veteran member. However, it installed multiple toolbars and multiple programs. I went through all of them, uninstalled them, cleared my registry, everything was gone. However, this memory problem reared its ugly head, later. I uninstalled, reinstalled. Didn't work. I tried to reset firefox, but it stayed open in the background, and I could not reset it. I disabled my addons (ones I've been using for over a year, now), nothing. I tried to open Firefox with all addons disabled, but it stayed open in the background and refused to re-open properly. I'm actually on another browser right now because Firefox is no longer working for much of anything... I also put a couple of attachments up to show the increase in question. It starts at around 270,000 K (though the screenshot shows around 312,000), then after about 4 or 5 minutes on my homepage, shoots up to well over 1,000,000 and it basically stops functioning. If anyone has any additional steps they think I could take, I would appreciate it.

    '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]''' {web link}
    While you are in safe mode;
    Type '''about:preferences#advanced'''<Enter> in the address bar.
    Under '''Advanced,''' Select '''General.'''
    Look for and turn off '''Use Hardware Acceleration'''.
    Poke around safe web sites. Are there any problems?
    '''[https://support.mozilla.org/en-US/kb/firefox-uses-too-much-memory-ram Firefox uses too much memory (RAM) - How to fix]'''
    This article describes how to make Firefox use less memory to make it run faster and prevent crashes.

  • Shared memory:  apache memory usage in solaris 10

    Hi people, I have setup a project for the apache userID and set the new equivalent of shmmax for the user via projadd. In apache I crank up StartServers to 100 but the RAM is soon exhausted - apache appears not to use shared memory under solaris 10. Under the same version of apache in solaris 9 I can fire up 100 apache startservers with little RAM usage. Any ideas what can cause this / what else I need to do? Thanks!

    a) How or why does solaris choose to share memory
    between processes
    from the same program invoked multiple times
    if that program has not
    been specifically coded to use shared memory?Take a look at 'pmap -x' output for a process.
    Basically it depend on where the memory comes from. If it's a page loaded from disk (executable, shared library) then the page begins life shared among all programs using the same page. So a small program with lots of shared libraries mapped may have a large memory footprint but have most of it shared.
    If the page is written to, then a new copy is created that is no longer shared. If the program requests memory (malloc()), then the heap is grown and it gathers more private (non-shared) page mappings.
    Simply: if we run pmap / ipcs we can see a
    shared memory reference
    for our oracle database and ldap server. There
    is no entry for apache.
    But the total memory usage is far far less than
    all the apache procs'
    individual memory totted up (all 100 of them, in
    prstat.) So there is
    some hidden sharing going on somewhere that
    solaris(2.9) is doing,
    but not showing in pmap or ipcs. (virtually
    no swap is being used.)pmap -x should be showing you exactly which pages are shared and which are not.
    b) Under solaris 10, each apache process takes up
    precisely the
    memory reported in prstat - add up the 100
    apache memory details
    and you get the total RAM in use. crank up the
    number of procs any
    more and you get out of memory errors so it
    looks like prstat is
    pretty good here. The question is - why on
    solaris10 is apache not
    'shared' but it is on solaris 9? We set up
    all the usual project details
    for this user, (jn /etc/projects) but I'm
    guessing now that these project
    tweaks where you explicitly set the shared
    memory for a user only take
    effect for programs explicitly coded to use
    shared memory , e.g. the
    oracle database, which correctly shows up a
    shared memory reference
    in ipcs .
    We can fire up thousands of apaches on the 2.9
    system without
    running out of memory - both machines have the
    same ram !
    But the binary versions of apache are exactly
    the same, and
    the config directives are identical.
    please tell me that there is something really
    simple we have missed!On Solaris 10, do all the pages for one of the apache processes appear private? That would be really, really unusual.
    Darren

Maybe you are looking for