Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 6 of 6

Thread: Memory Leak

  1. #1
    Junior Member
    Join Date
    Dec 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Memory Leak

    Can the VM heap memory over flow because of bad communication with a slave device ( HUB , Bad Ethernet cable)?

  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Memory Leak

    Do you have an example that does that? Please copy the full text of the error message and paste it here.
    Also post the code.
    If you don't understand my answer, don't ignore it, ask a question.

  3. #3
    Junior Member
    Join Date
    Dec 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Memory Leak

    I'm sorry but the code is internal property so it's a problem to paste it. this is a general question.

  4. #4
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Memory Leak

    A memory leak could be due to poorly written code. Look at the stack trace and see where the loop is that is causing the error. Then look at the code to see why it is not handling the error correctly.
    If you don't understand my answer, don't ignore it, ask a question.

  5. #5
    Junior Member
    Join Date
    Dec 2018
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: Memory Leak

    Can a faulty Ethernet cable over stack the memory?

    --- Update ---

    Or faulty switch?

  6. #6
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,042
    Thanks
    63
    Thanked 2,708 Times in 2,658 Posts

    Default Re: Memory Leak

    I assume the problem could be with bad code that is not handling the hardware problem correctly.
    If you don't understand my answer, don't ignore it, ask a question.

Similar Threads

  1. Java application Memory Leak
    By Prem2310 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 9th, 2013, 08:42 AM
  2. com.mysql.jdbc.JDBC4Connection suspected memory leak in java
    By newbie14 in forum JDBC & Databases
    Replies: 0
    Last Post: July 4th, 2013, 10:57 PM
  3. SImpeJDBCinsert leads to memory leak
    By justyStepi in forum JDBC & Databases
    Replies: 3
    Last Post: May 22nd, 2013, 11:26 AM
  4. Replies: 0
    Last Post: April 3rd, 2013, 09:17 PM
  5. [SOLVED] Memory usage increasing in while loop - is it a memory leak
    By mds1256 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 18th, 2012, 10:06 AM