12-13-2012
AIX6: Getting Out of memory error during SFTP
Thanks dude. Will try and let you know the outcome. Thanks again.
10 More Discussions You Might Find Interesting
1. AIX
Hello all, my first post so please be gentle!
I have 2 x AIX 6.1.4.0 environments, one has EFS enabled and the other does not.
I have installed SSH & SSL on both systems, and configured SFTP using SSL authentication between both boxes:
openssh.base.client 5.2.0.5300 COMMITTED Open Secure... (3 Replies)
Discussion started by: PJMCK
3 Replies
2. AIX
I'm planning of setting up a DNS server on AIX 6.1.
Could someone shed me some lights on the step-by-steps of how to set this up?
Thanks. (2 Replies)
Discussion started by: famasutika
2 Replies
3. UNIX for Advanced & Expert Users
I was running a program and it stopped and showed "Out of Memory!". at that time, the RAM used by this process is around 4G and the free memory size of the machine is around 30G. Does anybody know what maybe the reason? this program is written with Perl. the OS of the machine is Solaris U8. And I... (1 Reply)
Discussion started by: lilili07
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I've set on /etc/profile:
TMOUT=3600
readonly TMOUT
It seems to work when I connect using ssh client, putty for example, but not when connect through sftp. What am I missing on sshd configuration?
regards
Israel. (2 Replies)
Discussion started by: iga3725
2 Replies
5. AIX
Hi Folks,
I'm facing the below error when loading my library on AIX6.1
java.lang.UnsatisfiedLinkError: marimba (A file or directory in the path name do
es not exist.)
at java.lang.ClassLoader.loadLibraryWithPath(ClassLoader.java:1013)
at... (7 Replies)
Discussion started by: Bharath_M
7 Replies
6. Shell Programming and Scripting
Hi,
I have situation where i need to automate transferring 10000+ files using sftp.
while read line
do
if ; then
echo "-mput /home/student/Desktop/folder/$line/* /cygdrive/e/folder/$line/">>sftpCommand.txt
fi
done< files.txt
sftp -b sftpCommand.txt stu@192.168.2.1
The above... (1 Reply)
Discussion started by: noobrobot
1 Replies
7. AIX
Hello Team,
We are trying to install Java7 for weblogic user in a particular location(not default /usr location). I have tried following method but no luck, Need your suggestion on this.
Issue details :
1) smitty installp >> When trying this there is no option to relocate the... (4 Replies)
Discussion started by: gowthamakanthan
4 Replies
8. AIX
Hello,
I have a problem with an NFS file system. Both AIX servers are AIX6.1 and uses NFS version 3.
The problem is that at some point the client server cannot connect to the NFS anymore and when i do df -k it displays the message NFS server <server> not responding still trying.
i run the... (2 Replies)
Discussion started by: omonoiatis9
2 Replies
9. AIX
How many Core in AIX6 & AIX7 ..
Please guys I want commands to know how many Core in these two different version please i need exact command ? (2 Replies)
Discussion started by: top.level
2 Replies
10. AIX
Dear Guys ..
I'm going to Upgrade one of the servers AIX 6.1
I want to stop rootvg mirror to save the mirror then upgrade to AIX 6.1 this is to help me in rollback if something goes wrong but ..
can anyone help me how to make sure that system is relay mirrored and how to know that second... (10 Replies)
Discussion started by: top.level
10 Replies
LEARN ABOUT CENTOS
libssh2_sftp_write
libssh2_sftp_write(3) libssh2 manual libssh2_sftp_write(3)
NAME
libssh2_sftp_write - write SFTP data
SYNOPSIS
#include <libssh2.h>
#include <libssh2_sftp.h>
ssize_t libssh2_sftp_write(LIBSSH2_SFTP_HANDLE *handle,
const char *buffer,
size_t count);
DESCRIPTION
libssh2_sftp_write(3) writes a block of data to the SFTP server. This method is modeled after the POSIX write() function and uses the same
calling semantics.
handle - SFTP file handle as returned by libssh2_sftp_open_ex(3).
buffer - points to the data to send off.
count - Number of bytes from 'buffer' to write. Note that it may not be possible to write all bytes as requested.
libssh2_sftp_handle(3) will use as much as possible of the buffer and put it into a single SFTP protocol packet. This means that to get
maximum performance when sending larger files, you should try to always pass in at least 32K of data to this function.
WRITE AHEAD
Starting in libssh2 version 1.2.8, the default behavior of libssh2 is to create several smaller outgoing packets for all data you pass to
this function and it will return a positive number as soon as the first packet is acknowledged from the server.
This has the effect that sometimes more data has been sent off but isn't acked yet when this function returns, and when this function is
subsequently called again to write more data, libssh2 will immediately figure out that the data is already received remotely.
In most normal situation this should not cause any problems, but it should be noted that if you've once called libssh2_sftp_write() with
data and it returns short, you MUST still assume that the rest of the data might've been cached so you need to make sure you don't alter
that data and think that the version you have in your next function invoke will be detected or used.
The reason for this funny behavior is that SFTP can only send 32K data in each packet and it gets all packets acked individually. This
means we cannot use a simple serial approach if we want to reach high performance even on high latency connections. And we want that.
RETURN VALUE
Actual number of bytes written or negative on failure.
If used in non-blocking mode, it returns LIBSSH2_ERROR_EAGAIN when it would otherwise block. While LIBSSH2_ERROR_EAGAIN is a negative num-
ber, it isn't really a failure per se.
If this function returns 0 (zero) it should not be considered an error, but simply that there was no error but yet no payload data got sent
to the other end.
ERRORS
LIBSSH2_ERROR_ALLOC - An internal memory allocation call failed.
LIBSSH2_ERROR_SOCKET_SEND - Unable to send data on socket.
LIBSSH2_ERROR_SOCKET_TIMEOUT -
LIBSSH2_ERROR_SFTP_PROTOCOL - An invalid SFTP protocol response was received on the socket, or an SFTP operation caused an errorcode to be
returned by the server.
SEE ALSO
libssh2_sftp_open_ex(3)
libssh2 0.15 1 Jun 2007 libssh2_sftp_write(3)