postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.84k stars 839 forks source link

Eating too much RAM #4687

Open napestershine opened 6 years ago

napestershine commented 6 years ago

Describe the bug When I start postman, My system gets hanged for about 1 min, and when I check task manager, postman always shows RAM usage above 400 MB, System gets super slow. I don't know what's going on. I am always on a high speed wifi network and logged in with my account. So sync shouldn't be taking too much time or RAM.

To Reproduce Steps to reproduce the behavior:

  1. Install postman on Windows 10, after downloading from official website
  2. Login with account
  3. create some about 5 collections
  4. open postman
  5. system hang + wait sometime
  6. check task manager and you get this

Expected behavior I hope RAM usage can be decrease to a level of about 100 to 150 MB, 400+ is too much

Screenshots capture

App information (please complete the following information):

Additional context System configuration intel i7 7th generation xeon 8 GB RAM 4 Gb graphics card 2 TB HDD

all HDD space is empty about more than 1.5 TB still hangs and too much RAM.

Thanks

vdcardenas commented 6 years ago

Me too when i try import a heavy colecction (more of 1000 request).

Screenshots captura

App information (please complete the following information):

Additional context

Inter Core i7-7600 CPU 2.80 Ghz RAM: 16 Gb Windows 10 x64 bits SSD 500Gb (400 empty)

ybrodsky commented 6 years ago

Same here, above 1,4gb. That's one point four gigabytes. What the heck is it doing with so much ram.

numaanashraf commented 6 years ago

@ybrodsky We'ld like to get some additional information to debug this issue at our end. Could you let me know your OS version and Postman app version?

ybrodsky commented 6 years ago

Ubuntu 17 Postman v6.2.3

Another thing... I had a raw body with a base64 string, around 2mb. Its heavy but still quite distant from those 1,4gb it was using.

brentlemons commented 6 years ago

Mine was at 2.5gb just a moment ago. I believe part of the problem is the fact every time you click on a call in your history it opens a new tab (WTF, the "Always open requests in new tab" doesn't seem to do anything). I just force closed 53 tabs and it reduced footprint to 800mb. Still high, but better than before.

Postman is infinitely easier to use than curl, but you're killing me Smalls.

OSX 10.13.3 Postman 6.2.4

bezuiden commented 6 years ago

This happens with me too ... got 8 collections with about 120 requests total and the memory is at 1.8GB and I just started it (haven't done any requests at all) Windows 7 x64 Postman 6.2.5

bezuiden commented 6 years ago

I just went into the developer tools and selected to clear the storage. (I did make a backup / dump) ... restarted postman and now it is at 220MB. I reloaded by dump file and it is still round 230MB and I preformed a few requests.

It seems that it is loading either history / session data / workspace data etc. etc. in memory (also as a side note, when doing memory analyses / heap dump the usage went up to 2.8GB from 1.8GB which is ok, but after a restart it went straight back to 2.8 GB) This seems to point to something loading or caching everything in a previous session(s) postman memory1

RafeeqMohammed commented 6 years ago

My postman is using 1.8gig memory usage

My laptop has 8 gig an running in windows 10

ShavaShav commented 6 years ago

I'm also on Windows 10, with 12 GB RAM. Postman regularly uses over 3GB for me. Even with a clear history and no collections.

postman

napestershine commented 6 years ago

@numaanashraf Looks like many people have this trouble. can you guys take on serious note please ?

MateuszPrasal commented 6 years ago

I have same problem in my Ubuntu 18. Postman is eating too much RAM :( Postman 6.3.0

shawkyGalal commented 6 years ago

We suffer from the same problem ... is there any fix or work around ? please support.

oooarthur commented 5 years ago

Same here. Postman consistently increases memory usage even when idle. Have to restart several times a day. infinitely worse when Collection Runner is open. Have tried with just one collection active - no joy.

FARHANE commented 5 years ago

same thing on ubuntu 18

nadjib commented 5 years ago

Same with MacOS High Sierra 10.13.3

screen shot 2018-11-27 at 13 42 33
StefansArya commented 5 years ago

My solution is using chrome extension, but it's going to be deprecated.

dioogo commented 5 years ago

Same problem here. 41% (3.5GB to 4GB) of mem usage by Postman.

Seeing this post, I tried to delete all the opened tabs. After that. the usage went down to ~15%.

MateuszPrasal commented 5 years ago

I changed Postman to Insomnia - it works great and it is really light :)

GregoryPellegrin commented 5 years ago

I have a postman with 2.5Go so be happy with your 400Mb hahaha

daozhihun commented 5 years ago

I'm on Mac OS and the postman (and its helper processes) eats up about 500MB. I've no history at all and I don't think it's normal for an app like Postman. Please improve.

tdhung80 commented 5 years ago

same here, postman creates too many process and consume huge of memory even that there is no activity yet.

dJani97 commented 5 years ago

I'm running the latest Postman v7.3.4 on openSUSE, with one single tab open, and it is eating up at least 600 megabytes of my system memory. I think this is unacceptable for a program that I only use to execute a single HTTP request every now and then. What are you guys keeping in the memory all this time?

image

I would be glad to provide help in any way, if you need some additional info just contact me.

rafael-yure commented 5 years ago

Yeah, mine too. I've just closed and opened up again:

image

This will never change unless Postman stops using Electron. All Electron apps have this huge RAM footpring: Slack, WhatsApp, take your pic.

I always wonder how much RAM do I actually need to develop these days...

anselmobattisti commented 5 years ago

The same here :(

Imoriarty commented 5 years ago

Same issue. Win 7, 8 GB Ram. It's like Chrome and Postman are having a grudge match to see who can eat the most. This is a single instance of postman with two collections, and less than 150 requests between the two.

Before PM Restart Capture

After PM Restart Capture

decoded4620 commented 5 years ago

I didn't grab a screen shot, but postman just brought my 32gb Windows desktop to the point of freezing with 99% memory usage. In Task Manager, it showed three seperate processes each using 7G each. I had intelliJ open, and chrome with 5 tabs (mostly github stuff), but PostMans usage made it almost impossible to move my mouse or open my Task Manager.

decoded4620 commented 5 years ago

badPostMan

Running again reveals a big issue (Windows 10 x64 latest, 32.0 GB ram)

qcastel commented 5 years ago

@decoded4620 Yea, that's really the big downside of Postman. We did suffer from the same problem in our project.

I did investigate a bit deeper, by doing like you, and found out that it's the environment variables the issues:

Postman is reloading in memory the environment variables. Did share this video with Postman https://youtu.be/F0I9SjRaY1M but they haven't progress so far on that.

The only advise I can give you, is to check if it's the same root cause too, ie env variable. If so, try to not have as much variables in your environment. For our project, by refactoring this, we managed to be able to use Postman again.

Otherwise, you may want to use newman.

preethammavin commented 5 years ago

We are actively working on performance improvements, this is something that deeply concerns us. We try to address performance issues with every release and always deliver the best possible product experience for our users, will keep the thread updated with the future improvements.

kevinburke16 commented 5 years ago

Been having the same issue since I updated windows 10. Postman is unuseable for me it's 1 min when trying to access the folder.

Does anyone have suggestions on how I can copy my data from postman so I can use something else?

kamalaknn commented 5 years ago

Hey @kevinburke16, did you start noticing the performance issues recently with windows update? Can you give us more details about the version of your operating system and your system configuration?

kevinburke16 commented 5 years ago

I5, 7200U, 2.70GHz, 8GB RAM, 64-bit windows 10, Yes it happened after I did the most recent update for windows 10.

kevinburke16 commented 5 years ago

It appears my postman file was corrupt, orders were populating to a background collection. Thankfully I was able to access my clean history and just had to resave the routes to a new collection and files. Created a backup now and its clean for future.

Does anyone know why this could have happened?

StefansArya commented 4 years ago

The alternative was come, this app can be used on our browser instead of using Electron. This was more memory efficient because it's running on your browser tab, approx RAM used 50MB.

Postwoman

propagating commented 4 years ago

I just ran into this issue. There were multiple postman processes, 1 was using 24Gigs, and the second was using 9Gigs. A dozen other postman processes were started, each using from 800mb to 1gb as well.

freerider7777 commented 4 years ago

Same thing, too much memory for small requests...

preethammavin commented 4 years ago

@freerider7777 @propagating , we are trying to get few of the performances fixes in. Can you give us an idea of your current state of the app when you observed this like the number of tabs open, collections, requests, variables? Also config of your device, this would help us narrow down the issue

propagating commented 4 years ago

@preethammavin I've got about 60 requests across 7 collections. I have no variables or collections setup to run automated testing, actually no scheduled jobs at all.

I was playing a game and things got extremely sluggish out of nowhere and wouldn't clear up. The first step was to look at the resource usage. Postman.exe was using up 40% of available RAM, and 23% CPU, If I remember correctly, it was about 23,796,000 K

Postman was just hanging out in the background.

Propagating DxDiag.txt

freerider7777 commented 4 years ago

@preethammavin I've restarted Posman recently, now it uses not as much as before restart, but also rather much (I was using collection runner, had open tabs). I have ~200 requests (I think). posman_mem And after some time (and sending 5-10 requests) Commit size is 856MB, memory keeps growing

postman_mem2

arlemi commented 4 years ago

Some more reports of high resources consumption on Discourse: https://community.getpostman.com/t/high-cpu-usage-even-when-it-is-not-open/9723

DRN88 commented 4 years ago

Some more reports of high resources consumption on Discourse: https://community.getpostman.com/t/high-cpu-usage-even-when-it-is-not-open/9723

Don't worry. They are just mining bitcoin... :smiley: (joke) Same issue here btw. 100% CPU when postman is IDLE. Even after I close it. I have to kill it from task manager. wtf?

arlemi commented 4 years ago

Another user reporting the same issue on Twitter: https://twitter.com/musayardimci/status/1227553277765734400

apremkumar commented 4 years ago

Postman on Ubuntu 18.04 consumes a tad more than 6 GB of the available 16 GB RAM.

PhungXuanAnh commented 4 years ago

Postman on Ubuntu 18.04 consumes a tad more than 6 GB of the available 16 GB RAM.

Me too, a terrible number

kamalaknn commented 4 years ago

Hey everyone,

We have been working on some improvements to improve memory usage for tabs and requests in Postman. With these changes we expect to see improvements when using multiple tabs and workspaces in Postman over a period of time.

We have pushed these improvements in the latest version v7.21.0. Could you update to the latest version and let us know if you are seeing improvements?

PhungXuanAnh commented 4 years ago

@kamalaknn it is improved, now, postman consume about 1Gb ram

tsukup commented 4 years ago

Good Afternoon, I'm still experiencing this issue except it's actually gotten a lot worse as of this week (4/13/2020). I'm on the latest version: v7.22.1. I still experience the issue even after uninstalling and reinstalling the latest version. I've tried running Postman Canary but I worry it's not stable enough to provide accurate results because I noticed it didn't load all of the requests in all of my collections. Should the latest version have fixed this issue? Thanks

propagating commented 4 years ago

I'm still seeing this behaviour occasionally. Normally, postman is running as expected, but at times, with 0 activity, it's still hitting 16GB+

kamalaknn commented 4 years ago

Hey @tsukup @propagating

We would like to get more information to help debug this issue better. Could you write to us at help@postman.com from your registered email? Please mention the GitHub issue id, along with app logs. You should be able to find the logs in the top menu-> View-> Developer -> view logs in finder

psnmissaka commented 4 years ago

@kamalaknn What's the average memory usage of Postman, while in use and when idle? While in use it uses a lot of memory; last time I checked it 800MB+ and was using around 550MB when it was in idle