Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 847107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:43:41+00:00 2026-05-15T06:43:41+00:00

I have a windows service that do something periodically. on user account runs systray

  • 0

I have a windows service that do something periodically.
on user account runs systray application (written in C#) that communicate with windows service (thru .net remoting) and shows a status and some option to users.

Everything works well beside that systray app uses 20-30MB of RAM !
it have to work in terminal environment, when 50 users login, only systray apps take >1GB of RAM ! and i don’t have to add, that’s wrong 🙂

Is it possible to write .net systray application that will be small ? (1-2MB max?)
or should I write it in c/c++? then, what kind of communication should I use between windows service (written in C#) and systray app ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T06:43:42+00:00Added an answer on May 15, 2026 at 6:43 am

    I’ve added following line to my code (app calls it sometimes along with GC.Collect() )

    System.Diagnostics.Process.GetCurrentProcess().MaxWorkingSet =
                    System.Diagnostics.Process.GetCurrentProcess().MinWorkingSet;
    

    Memory usage dropped to ~2MB (from 15-25MB), after nulling some objects after use (drawing menu and icon), memory usage dropped to ~540KB !
    it grows a little (to ~2-3MB if I use context menu, but then it drops back to ~540KB)

    So, goal achieved 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Windows service that runs as a logged-in user (local admin). During
I have a windows service that loads multiple handlers written by different developers. The
I have written a Windows service that I am needing to port over to
I have a .net windows service that works it's way through a queue of
I currently have a windows service that runs every 5 minutes. The code selects
I have written a windows service in c# that's designed not to stop or
I have a windows service that runs 24/7 on one of our servers. It
I have a Windows service that runs implementations of a framework across multiple threads.
Say I have a windows service that runs a method to generate reports. For
I have a Windows service that is written in C++ using VS2008. I now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.