Reading Time: < 1 minute A collection, I will add my comments later. Symptom: PermGen run out of space Memory leak Overview (Mark Thomas) http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf Memory leak happened in multiple deployment (more likely happens in development) http://stackoverflow.com/questions/7788280/memory-leak-when-redeploying-application-in-tomcat Tomcat 7 (Mark Thomas) http://java.dzone.com/articles/memory-leak-protection-tomcat quote… Application or library code that can trigger this situation include: JDBC driver registration Some logging frameworks Storing
Reading Time: 2 minutes I have been doing programming for over 14+ years, and from time to time I did pair programming (mostly debugging problem). Since early last year I have been doing more pairing, mostly due to the hints from above. I have mixed feeling on this, mostly along the lines of advantages of disadvantages talked about here
Reading Time: 2 minutes I did an experiment recently trying to move my wordpress website from a shared hosting site to Amazon aws ec2 micro instance (t1). The migration was mostly successful, I did not make the move eventually due to some technical and non-technical reasons. Nonetheless, I would like to share some of the lesson I learned from
Reading Time: 2 minutes We all know updating sqlite database on an existing iOS app could be tricky, esp. with any schema (table) changes. In the good old days when I was developing in-house app, I found out the app would crash when I added a column to the sqlite database, after merely updating the app. The problem was,
Reading Time: 2 minutes I have thought about this topic for a long time. I remember seeing at one place that an exceptional developer can do work usually done by 10 developers. Or in other words, he/she is a rockstar developer. Besides productivity, I think rockstar developer has the following traits: 1) Willing to share the knowledge with fellow
Reading Time: 2 minutes This is a continuation of my earlier post of Tree, recursive function and my dumb mistake. As I said in my last post, my solution was to create hash maps (singleton) to store those for the session. The main motivation was to help out the performance. But I found out it backfired on me, a
Reading Time: 3 minutes Or am I? I think I’m a pragmatic programmer. Note this is also a book title I read, by pragmatic (note not agile), I think it’s about balance between software quality, effort and delivery date. It’s also about releasing software with known risks (including bugs)
I thought about this as I started practicing
Reading Time: < 1 minute So I was able to fix that performance problem I mentioned in my previous post. But I inadvertently introduced a new problem in my previous fix. And here is the gist of how I did: while (some condition) { if(some other condition) { … return; } } Guess what, I was able to put it
Reading Time: < 1 minute Tree data structure is fairly common in software development, and luckily I have quite a bit experience working on those in my career. I started working on this as I was working for UGS/Siemens PLM Software, and I was involved in the development of XML based data adapter for CAD data exchange, a key piece
Reading Time: 2 minutes (Update 02-19-2021) spring.io Testing the Web Layer Mockito Example with Best Practices JUnit and Mockito : Best Practices, Do’s and Don’ts (Original) Test Driven Development (TDD) is getting popular these days. I had opportunity to being exposed it recently. I am not new to unit test. In the software company I worked for 8 years,
Recent Comments